pub struct DirectBinauralBus {
pub biquad_states: [Df2tState; 64],
pub fir_history: [[f32; 16]; 64],
pub fir_cursor: [u8; 64],
}Expand description
Bus 1: Direct Binaural Bus — per-emitter DF2T occlusion low-pass filter + zero-heap HRIR FIR convolution (ITD fractional delay + ILD + contralateral head-shadow).
Fields§
§biquad_states: [Df2tState; 64]Per-emitter DF2T biquad state registers.
fir_history: [[f32; 16]; 64]Per-emitter circular mono history buffer for zero-heap HRIR FIR convolution.
fir_cursor: [u8; 64]Per-emitter write cursor into fir_history.
Implementations§
Source§impl DirectBinauralBus
impl DirectBinauralBus
Sourcepub fn process_emitter_sample(
&mut self,
emitter_idx: usize,
mono_input: f32,
coeffs: &BiquadCoeffs,
gains: &BinauralGains,
sample_rate: f32,
) -> (f32, f32)
pub fn process_emitter_sample( &mut self, emitter_idx: usize, mono_input: f32, coeffs: &BiquadCoeffs, gains: &BinauralGains, sample_rate: f32, ) -> (f32, f32)
Filters a single mono emitter sample through its occlusion DF2T biquad and convolves
it with the synthesized left/right HRIR taps (BinauralGains from hrtf.rs).
Trait Implementations§
Source§impl Clone for DirectBinauralBus
impl Clone for DirectBinauralBus
Source§impl Debug for DirectBinauralBus
impl Debug for DirectBinauralBus
Auto Trait Implementations§
impl Freeze for DirectBinauralBus
impl RefUnwindSafe for DirectBinauralBus
impl Send for DirectBinauralBus
impl Sync for DirectBinauralBus
impl Unpin for DirectBinauralBus
impl UnsafeUnpin for DirectBinauralBus
impl UnwindSafe for DirectBinauralBus
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.