Struct allegro_audio::Mixer [] [src]

pub struct Mixer {
    // some fields omitted
}

Methods

impl Mixer
[src]

fn new(addon: &AudioAddon) -> Result<Mixer()>

fn new_custom(_: &AudioAddon, frequency: u32, depth: AudioDepth, chan_conf: ChannelConf) -> Result<Mixer()>

fn get_allegro_mixer(&self) -> *mut ALLEGRO_MIXER

Trait Implementations

impl Drop for Mixer
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more

impl AttachToMixer for Mixer
[src]

fn detach(&mut self)

fn attach<T: HasMixer>(&mut self, mixer: &mut T) -> Result<()()>

impl MixerLike for Mixer
[src]

fn get_allegro_mixer(&self) -> *mut ALLEGRO_MIXER

fn play_sample(&mut self, sample: &Sample, gain: f32, pan: Option<f32>, speed: f32, playmode: Playmode) -> Result<SampleInstance()>

fn get_frequency(&self) -> u32

fn get_gain(&self) -> f32

fn get_quality(&self) -> MixerQuality

fn get_channels(&self) -> ChannelConf

fn get_depth(&self) -> AudioDepth

fn get_playing(&self) -> bool

fn get_attached(&self) -> bool

fn set_playing(&self, playing: bool) -> Result<()()>

fn set_gain(&self, gain: f32) -> Result<()()>

fn set_frequency(&self, freq: u32) -> Result<()()>

fn set_quality(&self, quality: MixerQuality) -> Result<()()>

fn set_postprocess_callback(&mut self, cb: Option<Box<PostProcessCallback + Send>>) -> Result<()()>