Skip to content

Commit d122c26

Browse files
authored
Merge pull request #453 from orottier/feature/hide-audioprocessor-trait
Hide AudioProcessor trait from public API and force users to use worklet
2 parents d7767d1 + 9e1d707 commit d122c26

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+594
-563
lines changed

benches/worklet.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
use web_audio_api::render::RenderScope;
2-
use web_audio_api::worklet::{AudioParamValues, AudioWorkletProcessor};
1+
use web_audio_api::worklet::{AudioParamValues, AudioWorkletGlobalScope, AudioWorkletProcessor};
32
use web_audio_api::{AudioParamDescriptor, AutomationRate};
43

54
pub struct GainProcessor;
@@ -29,7 +28,7 @@ impl AudioWorkletProcessor for GainProcessor {
2928
inputs: &'b [&'a [&'a [f32]]],
3029
outputs: &'b mut [&'a mut [&'a mut [f32]]],
3130
params: AudioParamValues<'b>,
32-
_scope: &'b RenderScope,
31+
_scope: &'b AudioWorkletGlobalScope,
3332
) -> bool {
3433
let gain = params.get("gain");
3534
let io_zip = inputs[0].iter().zip(outputs[0].iter_mut());

examples/audio_processor_trait.rs

Lines changed: 0 additions & 192 deletions
This file was deleted.

0 commit comments

Comments
 (0)