Skip to content

Commit

Permalink
Fix API call for ScriptProcessorNode after merging main
Browse files Browse the repository at this point in the history
  • Loading branch information
orottier committed Apr 20, 2024
1 parent 545ccbd commit 5b48747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/script_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ mod tests {
// 2 input channels, 2 output channels
let node = context.create_script_processor(BUFFER_SIZE, 2, 2);
node.connect(&context.destination());
node.set_onaudioprocess(|e| {
node.set_onaudioprocess(|mut e| {
// left output buffer is left input * 2
e.output_buffer
.get_channel_data_mut(0)
Expand Down

0 comments on commit 5b48747

Please sign in to comment.