Struct allegro_audio::AudioStream [−][src]
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]
_: &AudioAddon,
filename: &str,
buffer_count: usize,
samples: u32
) -> Result<AudioStream, ()>
pub fn new(
_: &AudioAddon,
buffer_count: usize,
samples: u32,
frequency: u32,
depth: AudioDepth,
chan_conf: ChannelConf
) -> Result<AudioStream, ()>
[src]
_: &AudioAddon,
buffer_count: usize,
samples: u32,
frequency: u32,
depth: AudioDepth,
chan_conf: ChannelConf
) -> Result<AudioStream, ()>
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]
&self,
write_cb: &mut dyn FnMut(&mut dyn Write)
) -> Result<bool, ()>
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
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>,