Struct allegro_audio::SampleInstance[][src]

pub struct SampleInstance { /* fields omitted */ }

Implementations

impl SampleInstance[src]

pub fn new(_: &AudioAddon) -> Result<SampleInstance, ()>[src]

pub fn set_sample(&mut self, sample: &Sample) -> Result<(), ()>[src]

pub fn set_position(&self, position: u32) -> Result<(), ()>[src]

pub fn set_length(&self, length: u32) -> 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 get_frequency(&self) -> Result<u32, ()>[src]

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

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

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

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

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

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

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

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

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

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

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

pub fn get_allegro_sample_instance(&self) -> *mut ALLEGRO_SAMPLE_INSTANCE[src]

Trait Implementations

impl AttachToMixer for SampleInstance[src]

impl Drop for SampleInstance[src]

impl Send for SampleInstance[src]

impl Sync for SampleInstance[src]

Auto Trait Implementations

impl RefUnwindSafe for SampleInstance

impl Unpin for SampleInstance

impl UnwindSafe for SampleInstance

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.