Removed all code that uses OpenGL from Image.
[io/quag.git] / addons / SampleRateConverter / samples / mp3netstream.io
blob2d393125bd7e150fcbe4ea17df02dccdc303e749
1 #!/usr/bin/env io
4 AudioDevice open
6 mp2Decoder := AVCodec clone do(
7 setCodecName("mp2")
8 setStreamDestination(AudioDevice)
9 @@startAudioDecoding
12 s := URL with("http://www.somafm.com/groovesalad.pls") fetch betweenSeq("File1=", "\n")
13 s := "http://www.dekorte.com/Library/cowboy.mp3"
14 URL with(s) setStreamDestination(mp2Decoder) startStreaming
15 writeln("done streaming")
16 while(1, yield)