[][src]Struct soloud::audio::Queue

pub struct Queue { /* fields omitted */ }

Implementations

impl Queue[src]

pub fn play<T: AudioExt>(&self, sound: &T) -> Result<(), SoloudError>[src]

Play audio

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

Get queue count

pub fn is_currently_playing<AS: AudioExt>(&self, sound: &AS) -> bool[src]

Check if audio source is currently playing

pub fn set_params_from_audio_source<AS: AudioExt>(
    &mut self,
    sound: &AS
) -> Result<(), SoloudError>
[src]

Set params from audio source

pub fn set_params(&mut self, samplerate: f32) -> Result<(), SoloudError>[src]

Set params of the queue

pub fn set_params_ex(
    &mut self,
    samplerate: f32,
    channels: u32
) -> Result<(), SoloudError>
[src]

Set params of the queue adding channels

Trait Implementations

impl AudioExt for Queue[src]

impl Debug for Queue[src]

impl Drop for Queue[src]

Auto Trait Implementations

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.