Struct allegro_audio::Sink[][src]

pub struct Sink { /* fields omitted */ }

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]

pub fn new_with_mixer(
    frequency: u32,
    voice_depth: AudioDepth,
    voice_chan_conf: ChannelConf,
    mixer: Mixer
) -> Result<Sink, String>
[src]

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]

impl Send for Sink[src]

impl Sync for Sink[src]

Auto Trait Implementations

impl !RefUnwindSafe for Sink

impl Unpin for Sink

impl !UnwindSafe for Sink

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.