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