Struct quad_snd::AudioContext

source ·
pub struct AudioContext { /* private fields */ }

Implementations§

Examples found in repository?
examples/simple.rs (line 4)
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    let mut ctx = AudioContext::new();
    //let mut sound = Sound::load(&mut ctx, include_bytes!("test.ogg"));
    //let mut sound = Sound::load(&mut ctx, include_bytes!("test_96000.wav"));
    //let mut sound = Sound::load(&mut ctx, include_bytes!("test_13000.wav"));
    let mut sound = Sound::load(&mut ctx, include_bytes!("test_13000.wav"));

    sound.play(&mut ctx, Default::default());

    loop {}
}

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.