[−][src]Trait soloud::prelude::AudioExt
Required methods
pub fn default() -> Self
[src]
Creates a default initialized object
pub fn set_volume(&mut self, volume: f32)
[src]
Sets the volume
pub fn set_looping(&mut self, flag: bool)
[src]
Set whether the audio is looping
pub fn set_auto_stop(&mut self, flag: bool)
[src]
Set auto stop
pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
[src]
Set 3D min and max distances
pub fn set_3d_attenuation(
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
[src]
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
Set 3D attenuation
pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
[src]
Set 3D doppler factor
pub fn set_3d_listener_relative(&mut self, flag: bool)
[src]
Set 3D listener relative
pub fn set_3d_distance_delay(&mut self, delay: i32)
[src]
Set 3D distance delay
pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
[src]
Set inaudible behavior
pub fn set_loop_point(&mut self, loop_point: f64)
[src]
Set a loop point
pub fn loop_point(&self) -> f64
[src]
Get the loop point
pub fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)
[src]
Set a filter, the filter_id is assigned by the developer and becomes the id for that filter, and to cancel pass None as a filter to the already assigned id
pub fn stop(&mut self)
[src]
Stop
pub unsafe fn inner(&self) -> *mut *mut c_void
[src]
Implementors
impl AudioExt for Ay
[src]
pub fn default() -> Self
[src]
pub fn set_volume(&mut self, volume: f32)
[src]
pub fn set_looping(&mut self, flag: bool)
[src]
pub fn set_auto_stop(&mut self, flag: bool)
[src]
pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
[src]
pub fn set_3d_attenuation(
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
[src]
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
[src]
pub fn set_3d_listener_relative(&mut self, flag: bool)
[src]
pub fn set_3d_distance_delay(&mut self, distance_delay: i32)
[src]
pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
[src]
pub fn set_loop_point(&mut self, loop_point: f64)
[src]
pub fn loop_point(&self) -> f64
[src]
pub fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)
[src]
pub fn stop(&mut self)
[src]
pub unsafe fn inner(&self) -> *mut *mut c_void
[src]
impl AudioExt for Bus
[src]
pub fn default() -> Self
[src]
pub fn set_volume(&mut self, volume: f32)
[src]
pub fn set_looping(&mut self, flag: bool)
[src]
pub fn set_auto_stop(&mut self, flag: bool)
[src]
pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
[src]
pub fn set_3d_attenuation(
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
[src]
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
[src]
pub fn set_3d_listener_relative(&mut self, flag: bool)
[src]
pub fn set_3d_distance_delay(&mut self, distance_delay: i32)
[src]
pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
[src]
pub fn set_loop_point(&mut self, loop_point: f64)
[src]
pub fn loop_point(&self) -> f64
[src]
pub fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)
[src]
pub fn stop(&mut self)
[src]
pub unsafe fn inner(&self) -> *mut *mut c_void
[src]
impl AudioExt for Monotone
[src]
pub fn default() -> Self
[src]
pub fn set_volume(&mut self, volume: f32)
[src]
pub fn set_looping(&mut self, flag: bool)
[src]
pub fn set_auto_stop(&mut self, flag: bool)
[src]
pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
[src]
pub fn set_3d_attenuation(
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
[src]
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
[src]
pub fn set_3d_listener_relative(&mut self, flag: bool)
[src]
pub fn set_3d_distance_delay(&mut self, distance_delay: i32)
[src]
pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
[src]
pub fn set_loop_point(&mut self, loop_point: f64)
[src]
pub fn loop_point(&self) -> f64
[src]
pub fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)
[src]
pub fn stop(&mut self)
[src]
pub unsafe fn inner(&self) -> *mut *mut c_void
[src]
impl AudioExt for Noise
[src]
pub fn default() -> Self
[src]
pub fn set_volume(&mut self, volume: f32)
[src]
pub fn set_looping(&mut self, flag: bool)
[src]
pub fn set_auto_stop(&mut self, flag: bool)
[src]
pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
[src]
pub fn set_3d_attenuation(
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
[src]
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
[src]
pub fn set_3d_listener_relative(&mut self, flag: bool)
[src]
pub fn set_3d_distance_delay(&mut self, distance_delay: i32)
[src]
pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
[src]
pub fn set_loop_point(&mut self, loop_point: f64)
[src]
pub fn loop_point(&self) -> f64
[src]
pub fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)
[src]
pub fn stop(&mut self)
[src]
pub unsafe fn inner(&self) -> *mut *mut c_void
[src]
impl AudioExt for Openmpt
[src]
pub fn default() -> Self
[src]
pub fn set_volume(&mut self, volume: f32)
[src]
pub fn set_looping(&mut self, flag: bool)
[src]
pub fn set_auto_stop(&mut self, flag: bool)
[src]
pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
[src]
pub fn set_3d_attenuation(
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
[src]
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
[src]
pub fn set_3d_listener_relative(&mut self, flag: bool)
[src]
pub fn set_3d_distance_delay(&mut self, distance_delay: i32)
[src]
pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
[src]
pub fn set_loop_point(&mut self, loop_point: f64)
[src]
pub fn loop_point(&self) -> f64
[src]
pub fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)
[src]
pub fn stop(&mut self)
[src]
pub unsafe fn inner(&self) -> *mut *mut c_void
[src]
impl AudioExt for Queue
[src]
pub fn default() -> Self
[src]
pub fn set_volume(&mut self, volume: f32)
[src]
pub fn set_looping(&mut self, flag: bool)
[src]
pub fn set_auto_stop(&mut self, flag: bool)
[src]
pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
[src]
pub fn set_3d_attenuation(
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
[src]
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
[src]
pub fn set_3d_listener_relative(&mut self, flag: bool)
[src]
pub fn set_3d_distance_delay(&mut self, distance_delay: i32)
[src]
pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
[src]
pub fn set_loop_point(&mut self, loop_point: f64)
[src]
pub fn loop_point(&self) -> f64
[src]
pub fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)
[src]
pub fn stop(&mut self)
[src]
pub unsafe fn inner(&self) -> *mut *mut c_void
[src]
impl AudioExt for Sfxr
[src]
pub fn default() -> Self
[src]
pub fn set_volume(&mut self, volume: f32)
[src]
pub fn set_looping(&mut self, flag: bool)
[src]
pub fn set_auto_stop(&mut self, flag: bool)
[src]
pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
[src]
pub fn set_3d_attenuation(
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
[src]
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
[src]
pub fn set_3d_listener_relative(&mut self, flag: bool)
[src]
pub fn set_3d_distance_delay(&mut self, distance_delay: i32)
[src]
pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
[src]
pub fn set_loop_point(&mut self, loop_point: f64)
[src]
pub fn loop_point(&self) -> f64
[src]
pub fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)
[src]
pub fn stop(&mut self)
[src]
pub unsafe fn inner(&self) -> *mut *mut c_void
[src]
impl AudioExt for Speech
[src]
pub fn default() -> Self
[src]
pub fn set_volume(&mut self, volume: f32)
[src]
pub fn set_looping(&mut self, flag: bool)
[src]
pub fn set_auto_stop(&mut self, flag: bool)
[src]
pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
[src]
pub fn set_3d_attenuation(
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
[src]
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
[src]
pub fn set_3d_listener_relative(&mut self, flag: bool)
[src]
pub fn set_3d_distance_delay(&mut self, distance_delay: i32)
[src]
pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
[src]
pub fn set_loop_point(&mut self, loop_point: f64)
[src]
pub fn loop_point(&self) -> f64
[src]
pub fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)
[src]
pub fn stop(&mut self)
[src]
pub unsafe fn inner(&self) -> *mut *mut c_void
[src]
impl AudioExt for TedSid
[src]
pub fn default() -> Self
[src]
pub fn set_volume(&mut self, volume: f32)
[src]
pub fn set_looping(&mut self, flag: bool)
[src]
pub fn set_auto_stop(&mut self, flag: bool)
[src]
pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
[src]
pub fn set_3d_attenuation(
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
[src]
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
[src]
pub fn set_3d_listener_relative(&mut self, flag: bool)
[src]
pub fn set_3d_distance_delay(&mut self, distance_delay: i32)
[src]
pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
[src]
pub fn set_loop_point(&mut self, loop_point: f64)
[src]
pub fn loop_point(&self) -> f64
[src]
pub fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)
[src]
pub fn stop(&mut self)
[src]
pub unsafe fn inner(&self) -> *mut *mut c_void
[src]
impl AudioExt for Vic
[src]
pub fn default() -> Self
[src]
pub fn set_volume(&mut self, volume: f32)
[src]
pub fn set_looping(&mut self, flag: bool)
[src]
pub fn set_auto_stop(&mut self, flag: bool)
[src]
pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
[src]
pub fn set_3d_attenuation(
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
[src]
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
[src]
pub fn set_3d_listener_relative(&mut self, flag: bool)
[src]
pub fn set_3d_distance_delay(&mut self, distance_delay: i32)
[src]
pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
[src]
pub fn set_loop_point(&mut self, loop_point: f64)
[src]
pub fn loop_point(&self) -> f64
[src]
pub fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)
[src]
pub fn stop(&mut self)
[src]
pub unsafe fn inner(&self) -> *mut *mut c_void
[src]
impl AudioExt for Vizsn
[src]
pub fn default() -> Self
[src]
pub fn set_volume(&mut self, volume: f32)
[src]
pub fn set_looping(&mut self, flag: bool)
[src]
pub fn set_auto_stop(&mut self, flag: bool)
[src]
pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
[src]
pub fn set_3d_attenuation(
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
[src]
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
[src]
pub fn set_3d_listener_relative(&mut self, flag: bool)
[src]
pub fn set_3d_distance_delay(&mut self, distance_delay: i32)
[src]
pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
[src]
pub fn set_loop_point(&mut self, loop_point: f64)
[src]
pub fn loop_point(&self) -> f64
[src]
pub fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)
[src]
pub fn stop(&mut self)
[src]
pub unsafe fn inner(&self) -> *mut *mut c_void
[src]
impl AudioExt for Wav
[src]
pub fn default() -> Self
[src]
pub fn set_volume(&mut self, volume: f32)
[src]
pub fn set_looping(&mut self, flag: bool)
[src]
pub fn set_auto_stop(&mut self, flag: bool)
[src]
pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
[src]
pub fn set_3d_attenuation(
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
[src]
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
[src]
pub fn set_3d_listener_relative(&mut self, flag: bool)
[src]
pub fn set_3d_distance_delay(&mut self, distance_delay: i32)
[src]
pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
[src]
pub fn set_loop_point(&mut self, loop_point: f64)
[src]
pub fn loop_point(&self) -> f64
[src]
pub fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)
[src]
pub fn stop(&mut self)
[src]
pub unsafe fn inner(&self) -> *mut *mut c_void
[src]
impl AudioExt for WavStream
[src]
pub fn default() -> Self
[src]
pub fn set_volume(&mut self, volume: f32)
[src]
pub fn set_looping(&mut self, flag: bool)
[src]
pub fn set_auto_stop(&mut self, flag: bool)
[src]
pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
[src]
pub fn set_3d_attenuation(
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)
[src]
&mut self,
model: AttenuationModel,
rolloff_factor: f32
)