standardized-audio-context
Version:
A cross-browser wrapper for the Web Audio API which aims to closely follow the standard.
11 lines • 426 B
JavaScript
export const testAudioScheduledSourceNodeStartMethodNegativeParametersSupport = (nativeContext) => {
const nativeAudioBufferSourceNode = nativeContext.createOscillator();
try {
nativeAudioBufferSourceNode.start(-1);
}
catch (err) {
return err instanceof RangeError;
}
return false;
};
//# sourceMappingURL=test-audio-scheduled-source-node-start-method-negative-parameters-support.js.map