blob: 89d22c0d18b3622f38975b30c312256d963738bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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>
|