Skip to content

Commit 8295734

Browse files
committed
ScriptProcessorNode: tailTime false suffices (and is spec compliant)
1 parent f04e19c commit 8295734

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/node/script_processor.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,7 @@ impl AudioProcessor for ScriptProcessorRenderer {
246246
self.next_output_buffer.resize(number_of_quanta, silence);
247247
}
248248

249-
// TODO, spec says to return false but we actually need true because of 'actively
250-
// processing' requirements
251-
// <https://webaudio.github.io/web-audio-api/#AudioNode-actively-processing>
252-
true
249+
false // node is kept alive as long as the handle in the event loop still exists
253250
}
254251

255252
fn onmessage(&mut self, msg: &mut dyn Any) {

0 commit comments

Comments
 (0)