Updating built in Io code to use += instead of x = x + y
[io/quag.git] / addons / LibSndFile / 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)