Struct allegro_audio::AudioStream[][src]

pub struct AudioStream { /* fields omitted */ }

Implementations

impl AudioStream[src]

pub fn load(addon: &AudioAddon, filename: &str) -> Result<AudioStream, ()>[src]

pub fn load_custom(
    _: &AudioAddon,
    filename: &str,
    buffer_count: usize,
    samples: u32
) -> Result<AudioStream, ()>
[src]

pub fn new(
    _: &AudioAddon,
    buffer_count: usize,
    samples: u32,
    frequency: u32,
    depth: AudioDepth,
    chan_conf: ChannelConf
) -> Result<AudioStream, ()>
[src]

pub fn set_loop_secs(&self, start: f64, end: f64) -> Result<(), ()>[src]

pub fn set_playing(&self, playing: bool) -> Result<(), ()>[src]

pub fn set_gain(&self, gain: f32) -> Result<(), ()>[src]

pub fn set_pan(&self, pan: Option<f32>) -> Result<(), ()>[src]

pub fn set_speed(&self, speed: f32) -> Result<(), ()>[src]

pub fn set_playmode(&self, playmode: Playmode) -> Result<(), ()>[src]

pub fn seek_secs(&self, time: f64) -> Result<(), ()>[src]

pub fn rewind(&self) -> Result<(), ()>[src]

pub fn drain(&self)[src]

pub fn get_frequency(&self) -> u32[src]

pub fn get_num_fragments(&self) -> u32[src]

pub fn get_num_available_fragments(&self) -> u32[src]

pub fn get_length_secs(&self) -> Result<f64, ()>[src]

pub fn get_length(&self) -> u32[src]

pub fn get_position_secs(&self) -> Result<f64, ()>[src]

pub fn get_speed(&self) -> f32[src]

pub fn get_gain(&self) -> f32[src]

pub fn get_pan(&self) -> f32[src]

pub fn get_playmode(&self) -> Playmode[src]

pub fn get_channels(&self) -> ChannelConf[src]

pub fn get_depth(&self) -> AudioDepth[src]

pub fn get_playing(&self) -> bool[src]

pub fn get_attached(&self) -> bool[src]

pub fn write_fragment(
    &self,
    write_cb: &mut dyn FnMut(&mut dyn Write)
) -> Result<bool, ()>
[src]

Trait Implementations

impl AttachToMixer for AudioStream[src]

impl Drop for AudioStream[src]

impl Send for AudioStream[src]

impl Sync for AudioStream[src]

Auto Trait Implementations

impl RefUnwindSafe for AudioStream

impl Unpin for AudioStream

impl UnwindSafe for AudioStream

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.