Struct allegro_audio::Sink
[−]
[src]
pub struct Sink { /* fields omitted */ }
Methods
impl Sink
[src]
fn new(addon: &AudioAddon) -> Result<Sink, String>
fn new_custom(addon: &AudioAddon,
frequency: u32,
voice_depth: AudioDepth,
voice_chan_conf: ChannelConf,
mixer_depth: AudioDepth,
mixer_chan_conf: ChannelConf)
-> Result<Sink, String>
frequency: u32,
voice_depth: AudioDepth,
voice_chan_conf: ChannelConf,
mixer_depth: AudioDepth,
mixer_chan_conf: ChannelConf)
-> Result<Sink, String>
fn new_with_mixer(frequency: u32,
voice_depth: AudioDepth,
voice_chan_conf: ChannelConf,
mixer: Mixer)
-> Result<Sink, String>
voice_depth: AudioDepth,
voice_chan_conf: ChannelConf,
mixer: Mixer)
-> Result<Sink, String>
fn get_allegro_voice(&self) -> *mut ALLEGRO_VOICE
fn get_voice_frequency(&self) -> u32
fn get_voice_position(&self) -> u32
fn get_voice_channels(&self) -> ChannelConf
fn get_voice_depth(&self) -> AudioDepth
fn get_voice_playing(&self) -> bool
fn set_voice_playing(&self, playing: bool) -> Result<(), ()>
fn set_voice_position(&self, pos: u32) -> Result<(), ()>
Trait Implementations
impl Drop for Sink
[src]
impl MixerLike for Sink
[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, ()>
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<(), ()>
cb: Option<Box<PostProcessCallback + Send>>)
-> Result<(), ()>