mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
b=966322 work around bug 916387 DONTBUILD
--HG-- extra : rebase_source : 8c99076c2fdcf1f94eeaab085cc898346d189a1a
This commit is contained in:
parent
640fed18f9
commit
b80eba9af0
@ -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