Struct Constant
pub(crate) struct Constant;Trait Implementations§
§impl Processor for Constant
impl Processor for Constant
fn prepare(&mut self, _: ProcessConfig) -> Result<(), PrepareError>
fn process(&mut self, block: &mut ProcessBlock<'_, '_, '_>) -> ProcessStatus
fn reset(&mut self)
fn deactivate(&mut self)
§fn start_audio(&mut self) -> Result<(), ProcessError>
fn start_audio(&mut self) -> Result<(), ProcessError>
Optional explicit audio-owner session start, after prepare and before
rendering. Default is a no-op. Consumers using these hooks call once on
the audio owner and stop there before transfer/deactivation. Failure must
leave this processor stopped; earlier successful nodes may be stopped.
Hooks follow prepared callback allocation/locking/I/O obligations. Existing
adapters do not implicitly opt in; explicit graph sessions supply them.
§fn stop_audio(&mut self)
fn stop_audio(&mut self)
End an explicitly started session on its audio owner, without deactivation
or storage destruction. Default no-op; preparation/history may be retained.
§fn try_reset(&mut self) -> Result<(), ProcessError>
fn try_reset(&mut self) -> Result<(), ProcessError>
Attempt history reset without allocating or changing configuration.
Existing processors delegate to their successful legacy reset by default.
A refusal may follow earlier reset work; consumers must remain faulted.
§fn latency_samples(&self) -> u32
fn latency_samples(&self) -> u32
Prepared algorithmic latency in samples. Changes are advertised by adapters
using their format’s restart/latency protocol outside the audio callback.
§fn tail(&self) -> Tail
fn tail(&self) -> Tail
Decay policy after input stops. Adapters must map this to the host protocol.