UNPKG

standardized-audio-context

Version:

A cross-browser wrapper for the Web Audio API which aims to closely follow the standard.

11 lines 524 B
export const wrapAudioScheduledSourceNodeStopMethodNegativeParameters = (nativeAudioScheduledSourceNode) => { nativeAudioScheduledSourceNode.stop = ((stop) => { return (when = 0) => { if (when < 0) { throw new RangeError("The parameter can't be negative."); } stop.call(nativeAudioScheduledSourceNode, when); }; })(nativeAudioScheduledSourceNode.stop); }; //# sourceMappingURL=wrap-audio-scheduled-source-node-stop-method-negative-parameters.js.map