pub struct AudioConfig {
pub enabled: bool,
pub master_volume: f32,
pub music_volume: f32,
pub sfx_volume: f32,
pub sample_rate: u32,
pub buffer_size: u32,
pub spatial_audio: bool,
pub reverb_room: f32,
pub audio_backend: AudioBackend,
}Fields§
§enabled: bool§master_volume: f32§music_volume: f32§sfx_volume: f32§sample_rate: u32Sample rate override (0 = use device default).
buffer_size: u32Buffer size in frames (0 = auto).
spatial_audio: boolEnable spatialized 3D audio.
reverb_room: f32Reverb room size (0.0 = dry, 1.0 = large hall).
audio_backend: AudioBackendImplementations§
Source§impl AudioConfig
impl AudioConfig
Trait Implementations§
Source§impl Clone for AudioConfig
impl Clone for AudioConfig
Source§fn clone(&self) -> AudioConfig
fn clone(&self) -> AudioConfig
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 AudioConfig
impl Debug for AudioConfig
Source§impl Default for AudioConfig
impl Default for AudioConfig
Source§impl<'de> Deserialize<'de> for AudioConfig
impl<'de> Deserialize<'de> for AudioConfig
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 AudioConfig
impl RefUnwindSafe for AudioConfig
impl Send for AudioConfig
impl Sync for AudioConfig
impl Unpin for AudioConfig
impl UnsafeUnpin for AudioConfig
impl UnwindSafe for AudioConfig
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