pub struct SpatialConfig {Show 13 fields
pub hrtf_database_path: Option<PathBuf>,
pub sample_rate: u32,
pub buffer_size: usize,
pub room_dimensions: (f32, f32, f32),
pub reverb_time: f32,
pub enable_distance_attenuation: bool,
pub enable_air_absorption: bool,
pub enable_doppler: bool,
pub max_distance: f32,
pub speed_of_sound: f32,
pub quality_level: f32,
pub max_sources: usize,
pub use_gpu: bool,
}Expand description
Configuration for spatial audio processing
Fields§
§hrtf_database_path: Option<PathBuf>HRTF database path
sample_rate: u32Sample rate for processing
buffer_size: usizeBuffer size for processing
room_dimensions: (f32, f32, f32)Room size for acoustics simulation
reverb_time: f32Reverberation time (RT60) in seconds
enable_distance_attenuation: boolDistance attenuation enabled
enable_air_absorption: boolAir absorption enabled
enable_doppler: boolDoppler effect enabled
max_distance: f32Maximum processing distance
speed_of_sound: f32Speed of sound (m/s)
quality_level: f32Quality level (0.0 = lowest, 1.0 = highest)
max_sources: usizeMaximum concurrent audio sources
use_gpu: boolEnable GPU acceleration if available
Implementations§
Trait Implementations§
Source§impl Clone for SpatialConfig
impl Clone for SpatialConfig
Source§fn clone(&self) -> SpatialConfig
fn clone(&self) -> SpatialConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpatialConfig
impl Debug for SpatialConfig
Source§impl Default for SpatialConfig
impl Default for SpatialConfig
Source§impl<'de> Deserialize<'de> for SpatialConfig
impl<'de> Deserialize<'de> for SpatialConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SpatialConfig
impl RefUnwindSafe for SpatialConfig
impl Send for SpatialConfig
impl Sync for SpatialConfig
impl Unpin for SpatialConfig
impl UnsafeUnpin for SpatialConfig
impl UnwindSafe for SpatialConfig
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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