#[repr(C)]pub struct AcousticOcclusionResult {
pub direct_gain: f32,
pub lowpass_cutoff_hz: f32,
pub lowpass_biquad: BiquadCoeffs,
pub diffraction_phase_rad: f32,
pub early_reflection_delays_s: [f32; 6],
pub early_reflection_gains: [f32; 6],
pub enclosure_density: f32,
pub hit_count: u32,
}Expand description
Result of zero-heap acoustic occlusion evaluation between an emitter and the listener.
Fields§
§direct_gain: f32Direct-path amplitude multiplier in [0.0, 1.0] (1.0 = unoccluded).
lowpass_cutoff_hz: f32Frequency-dependent low-pass filter cutoff in Hz (20000.0 = unoccluded).
lowpass_biquad: BiquadCoeffsPrecomputed RBJ low-pass biquad filter coefficients at 48 kHz.
diffraction_phase_rad: f32Phase diffraction delay $\Delta\phi$ in radians induced by obstacle grazing / penetration.
early_reflection_delays_s: [f32; 6]6-tap early reflection arrival delays in seconds relative to direct sound.
early_reflection_gains: [f32; 6]6-tap early reflection linear gains.
enclosure_density: f32Local canyon/canopy enclosure metric in [0.0, 1.0] driving late Freeverb decay.
hit_count: u32Number of obstacles intersecting the direct acoustic ray.
Trait Implementations§
Source§impl Clone for AcousticOcclusionResult
impl Clone for AcousticOcclusionResult
impl Copy for AcousticOcclusionResult
Source§impl Debug for AcousticOcclusionResult
impl Debug for AcousticOcclusionResult
Source§impl Default for AcousticOcclusionResult
impl Default for AcousticOcclusionResult
Source§impl PartialEq for AcousticOcclusionResult
impl PartialEq for AcousticOcclusionResult
impl StructuralPartialEq for AcousticOcclusionResult
Auto Trait Implementations§
impl Freeze for AcousticOcclusionResult
impl RefUnwindSafe for AcousticOcclusionResult
impl Send for AcousticOcclusionResult
impl Sync for AcousticOcclusionResult
impl Unpin for AcousticOcclusionResult
impl UnsafeUnpin for AcousticOcclusionResult
impl UnwindSafe for AcousticOcclusionResult
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.