1
2
3
4
5
6
7
8
9
10
11
12
13
use quad_snd::{AudioContext, Sound};

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 {}
}