Struct Denormal Processor
pub struct DenormalProcessor<P> { /* private fields */ }Expand description
Explicit per-call scope around an exclusively owned portable processor.
Constructor probes only the constructing thread. Preparation delegates the child’s actual PrepareError; it cannot qualify a future AUDIO environment. Every process call preflights the entire block, then re-admits that thread. Native refusal silences all outputs without calling the child, retaining the first original native error until reset/reprepare. Child faults or panics can have committed histories; this adapter promises no rollback.
Manual start_audio/stop_audio must be paired on the AUDIO owner before CONTROL deactivate or extraction. No Drop hook implicitly stops or deactivates P. Child lifecycle panic leaves ownership uncertain until explicit successful stop/deactivate; it is never reported as a successful extraction receipt.
Implementations§
§impl<P> DenormalProcessor<P>
impl<P> DenormalProcessor<P>
pub fn new( processor: P, mode: DenormalMode, ) -> Result<Self, DenormalConstructionFailure<P>>
pub fn mode(&self) -> DenormalMode
pub fn processor(&self) -> &P
pub fn first_native_error(&self) -> Option<DenormalError>
pub fn into_inner(self) -> Result<P, Self>
pub fn into_inner(self) -> Result<P, Self>
Stopped, deactivated extraction. Refusal retains the entire adapter owner.