(
&self,
_config: &Self::Configuration,
cx: ConstructProcessorContext,
)
| 56 | } |
| 57 | |
| 58 | fn construct_processor( |
| 59 | &self, |
| 60 | _config: &Self::Configuration, |
| 61 | cx: ConstructProcessorContext, |
| 62 | ) -> Result<impl AudioNodeProcessor, NodeError> { |
| 63 | Ok(Processor { |
| 64 | phasor: 0.0, |
| 65 | phasor_inc: self.freq_hz.clamp(20.0, 20_000.0) |
| 66 | * cx.stream_info.sample_rate_recip as f32, |
| 67 | gain: self.volume.amp_clamped(DEFAULT_MIN_AMP), |
| 68 | }) |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | struct Processor { |
nothing calls this directly
no test coverage detected