Skip to content

Commit 5b48747

Browse files
committed
Fix API call for ScriptProcessorNode after merging main
1 parent 545ccbd commit 5b48747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/script_processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ mod tests {
342342
// 2 input channels, 2 output channels
343343
let node = context.create_script_processor(BUFFER_SIZE, 2, 2);
344344
node.connect(&context.destination());
345-
node.set_onaudioprocess(|e| {
345+
node.set_onaudioprocess(|mut e| {
346346
// left output buffer is left input * 2
347347
e.output_buffer
348348
.get_channel_data_mut(0)

0 commit comments

Comments
 (0)