mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=966322 work around bug 916387 DONTBUILD
--HG-- extra : rebase_source : 8c99076c2fdcf1f94eeaab085cc898346d189a1a
This commit is contained in:
parent
3a81a0bcc8
commit
24b6ab6b01
@ -17,6 +17,8 @@ addLoadEvent(function() {
|
||||
var sp = context.createScriptProcessor();
|
||||
|
||||
osc.connect(sp);
|
||||
// Work around bug 916387.
|
||||
sp.connect(context.destination);
|
||||
|
||||
sp.onaudioprocess = function (e) {
|
||||
var input = e.inputBuffer.getChannelData(0);
|
||||
@ -27,27 +29,9 @@ addLoadEvent(function() {
|
||||
}
|
||||
}
|
||||
sp.onaudioprocess = null;
|
||||
dump("audioprocess received\n");
|
||||
ok(isSilent, "OscillatorNode should be silent before calling start.");
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
// Debug Logging for bug 966322
|
||||
|
||||
var bs = context.createBufferSource();
|
||||
bs.buffer = context.createBuffer(1, 1, context.sampleRate);
|
||||
bs.start();
|
||||
bs.onended = function() {
|
||||
dump("Graph started running\n");
|
||||
}
|
||||
|
||||
var bs = context.createBufferSource();
|
||||
bs.buffer = context.createBuffer(1, 1, context.sampleRate);
|
||||
bs.start(sp.bufferSize / context.sampleRate);
|
||||
bs.onended = function() {
|
||||
dump("Graph ran for long enough to finish first ScriptProcessorBlock\n");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user