Making Samples executable. #!/usr/bin/env io and chmod a+x *.io
[io/quag.git] / addons / SoundTouch / samples / sndplay.io
bloba8f988f272eba0b011cd8f6db489f2ce79576af8
1 #!/usr/bin/env io
3 /*
4 if (?args == nil,
5 write("requires name of sound file as argument")
7 */
9 s := Sound clone setPath(Path with(launchPath, "sounds/max.wav")) load
11 AudioDevice open
12 //AudioDevice asyncWrite(s buffer)
14 loop(
15 while(AudioDevice needsData not, yield)
16 writeln("writing")
17 AudioDevice asyncWrite(s buffer)