pub struct Monotone { /* private fields */ }Expand description
Monotone audio type
Implementations§
Source§impl Monotone
impl Monotone
Sourcepub fn set_params(&mut self, hardware_channel: i32) -> Result<(), SoloudError>
pub fn set_params(&mut self, hardware_channel: i32) -> Result<(), SoloudError>
Set monotone parameters
Sourcepub fn set_params_ex(
&mut self,
hardware_channel: i32,
wave_form: WaveForm,
) -> Result<(), SoloudError>
pub fn set_params_ex( &mut self, hardware_channel: i32, wave_form: WaveForm, ) -> Result<(), SoloudError>
Set monotone parameters specifying the wave form
Trait Implementations§
Source§impl AudioExt for Monotone
impl AudioExt for Monotone
Source§fn set_volume(&mut self, volume: f32)
fn set_volume(&mut self, volume: f32)
Sets the volume
Source§fn set_looping(&mut self, flag: bool)
fn set_looping(&mut self, flag: bool)
Set whether the audio is looping
Source§fn set_auto_stop(&mut self, flag: bool)
fn set_auto_stop(&mut self, flag: bool)
Set auto stop
Source§fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)
Set 3D min and max distances
Source§fn set_3d_attenuation(&mut self, model: AttenuationModel, rolloff_factor: f32)
fn set_3d_attenuation(&mut self, model: AttenuationModel, rolloff_factor: f32)
Set 3D attenuation
Source§fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
fn set_3d_doppler_factor(&mut self, doppler_factor: f32)
Set 3D doppler factor
Source§fn set_3d_listener_relative(&mut self, flag: bool)
fn set_3d_listener_relative(&mut self, flag: bool)
Set 3D listener relative
Source§fn set_3d_distance_delay(&mut self, distance_delay: i32)
fn set_3d_distance_delay(&mut self, distance_delay: i32)
Set 3D distance delay
Source§fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)
Set inaudible behavior
Source§fn set_loop_point(&mut self, loop_point: f64)
fn set_loop_point(&mut self, loop_point: f64)
Set a loop point
Source§fn loop_point(&self) -> f64
fn loop_point(&self) -> f64
Get the loop point
impl Send for Monotone
impl Sync for Monotone
Auto Trait Implementations§
impl Freeze for Monotone
impl RefUnwindSafe for Monotone
impl Unpin for Monotone
impl UnwindSafe for Monotone
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> FromExt for T
impl<T> FromExt for T
Source§fn from_path<P>(path: P) -> Result<T, SoloudError>
fn from_path<P>(path: P) -> Result<T, SoloudError>
Loads an audio source from path
Source§fn from_mem(data: &[u8]) -> Result<T, SoloudError>
fn from_mem(data: &[u8]) -> Result<T, SoloudError>
Loads an audio source from memory. Prefer
LoadExt::load_mem when possible like when
using 'static &[u8]