Struct allegro_audio::Mixer [−][src]
Implementations
impl Mixer[src]
pub fn new(addon: &AudioAddon) -> Result<Mixer, ()>[src]
pub fn new_custom(
_: &AudioAddon,
frequency: u32,
depth: AudioDepth,
chan_conf: ChannelConf
) -> Result<Mixer, ()>[src]
_: &AudioAddon,
frequency: u32,
depth: AudioDepth,
chan_conf: ChannelConf
) -> Result<Mixer, ()>
pub fn get_allegro_mixer(&self) -> *mut ALLEGRO_MIXER[src]
Trait Implementations
impl AttachToMixer for Mixer[src]
impl Drop for Mixer[src]
impl MixerLike for Mixer[src]
fn get_allegro_mixer(&self) -> *mut ALLEGRO_MIXER[src]
fn play_sample(
&mut self,
sample: &Sample,
gain: f32,
pan: Option<f32>,
speed: f32,
playmode: Playmode
) -> Result<SampleInstance, ()>[src]
&mut self,
sample: &Sample,
gain: f32,
pan: Option<f32>,
speed: f32,
playmode: Playmode
) -> Result<SampleInstance, ()>
fn get_frequency(&self) -> u32[src]
fn get_gain(&self) -> f32[src]
fn get_quality(&self) -> MixerQuality[src]
fn get_channels(&self) -> ChannelConf[src]
fn get_depth(&self) -> AudioDepth[src]
fn get_playing(&self) -> bool[src]
fn get_attached(&self) -> bool[src]
fn set_playing(&self, playing: bool) -> Result<(), ()>[src]
fn set_gain(&self, gain: f32) -> Result<(), ()>[src]
fn set_frequency(&self, freq: u32) -> Result<(), ()>[src]
fn set_quality(&self, quality: MixerQuality) -> Result<(), ()>[src]
fn set_postprocess_callback(
&mut self,
cb: Option<Box<dyn PostProcessCallback + Send>>
) -> Result<(), ()>[src]
&mut self,
cb: Option<Box<dyn PostProcessCallback + Send>>
) -> Result<(), ()>
impl Send for Mixer[src]
impl Sync for Mixer[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,