exports std-audio-context's isSupported method

This commit is contained in:
Yotam Mann 2020-04-16 14:44:48 -04:00
parent d6affa920f
commit f28c4b4a84
2 changed files with 9 additions and 1 deletions

View file

@ -1,7 +1,7 @@
import {
AudioContext as stdAudioContext,
AudioWorkletNode as stdAudioWorkletNode,
OfflineAudioContext as stdOfflineAudioContext,
OfflineAudioContext as stdOfflineAudioContext
} from "standardized-audio-context";
import { assert } from "../util/Debug";
import { isDefined } from "../util/TypeCheck";
@ -51,3 +51,10 @@ export function createAudioWorkletNode(context: AnyAudioContext, name: string, o
// @ts-ignore
return new stdAudioWorkletNode(context, name, options);
}
/**
* This promise resolves to a boolean which indicates if the
* functionality is supported within the currently used browse.
* Taken from [standardized-audio-context](https://github.com/chrisguttandin/standardized-audio-context#issupported)
*/
export { isSupported as supported } from "standardized-audio-context";

View file

@ -5,6 +5,7 @@ import { getContext } from "./core/Global";
import { ToneAudioBuffer } from "./core/context/ToneAudioBuffer";
export { start } from "./core/Global";
import { Seconds } from "./core/type/Units";
export { supported } from "./core/context/AudioContext";
/**
* The current audio context time of the global [[Context]].