mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-27 12:03:12 +00:00
exports std-audio-context's isSupported method
This commit is contained in:
parent
d6affa920f
commit
f28c4b4a84
2 changed files with 9 additions and 1 deletions
|
@ -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";
|
||||
|
|
|
@ -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]].
|
||||
|
|
Loading…
Reference in a new issue