MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / new_stream

Method new_stream

crates/firewheel-core/src/node.rs:560–563  ·  view source on GitHub ↗

Called when a new audio stream has been started after a previous call to [`AudioNodeProcessor::stream_stopped`]. This method gets called on the main thread, not the realtime audio thread. So it is safe to allocate/deallocate here.

(&mut self, stream_info: &StreamInfo, context: &mut ProcStreamCtx)

Source from the content-addressed store, hash-verified

558 /// This method gets called on the main thread, not the realtime audio
559 /// thread. So it is safe to allocate/deallocate here.
560 fn new_stream(&mut self, stream_info: &StreamInfo, context: &mut ProcStreamCtx) {
561 let _ = stream_info;
562 let _ = context;
563 }
564}
565
566impl AudioNodeProcessor for Box<dyn AudioNodeProcessor> {

Callers

nothing calls this directly

Implementers 15

filter.rsexamples/custom_nodes/src/nodes/filter
noise_gen.rsexamples/custom_nodes/src/nodes/noise_
rms.rsexamples/custom_nodes/src/nodes/rms.rs
triple_buffer.rscrates/firewheel-nodes/src/triple_buff
beep_test.rscrates/firewheel-nodes/src/beep_test.r
volume.rscrates/firewheel-nodes/src/volume.rs
spatial_basic.rscrates/firewheel-nodes/src/spatial_bas
delay_compensation.rscrates/firewheel-nodes/src/delay_compe
mix.rscrates/firewheel-nodes/src/mix.rs
svf.rscrates/firewheel-nodes/src/svf.rs
fast_rms.rscrates/firewheel-nodes/src/fast_rms.rs
sampler.rscrates/firewheel-nodes/src/sampler.rs

Calls

no outgoing calls

Tested by

no test coverage detected