Skip to content

Commit

Permalink
crashtest with OscillatorNode stop time before start time with AudioP…
Browse files Browse the repository at this point in the history
…aram

Depends on D197405

Differential Revision: https://phabricator.services.mozilla.com/D197406

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1871838
gecko-commit: 73447637506af710e9de2e2ef9571534eb5faa9f
gecko-reviewers: padenot
  • Loading branch information
karlt authored and moz-wptsync-bot committed Mar 6, 2024
1 parent 701d38f commit 90b4f00
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<html class="test-wait">
<head>
<title>
Test stop() time before start() time on OscillatorNode with AudioParam
</title>
</head>
<script>
const ac = new OfflineAudioContext({length: 136, sampleRate: 48000});
const osc = new OscillatorNode(ac);
osc.start(61/ac.sampleRate);
osc.stop(31/ac.sampleRate);
osc.detune.setValueAtTime(2.0, 1/ac.sampleRate);
ac.startRendering().then(
() => document.documentElement.removeAttribute("class"));
</script>
</html>

0 comments on commit 90b4f00

Please sign in to comment.