maxmod and streaming

BlitzMax Forums/BlitzMax Beginners Area/maxmod and streaming

Pax(Posted 2009) [#1]
Hello, I'm trying to stream ogg files from a site, this is what I am doing (based on Redi's code):

SuperStrict
Import MaxMod.AudioStream
Import MaxMod.Ogg

EnableOpenALAudio()
SetAudioDriver("OpenAL Generic Software")

Local Music:TMusic = TOGGStream.OpenIceStream("dimensionespiritual.org", "/aus/silla.ogg", 80)
If Not Music RuntimeError "Connection failed"
Local Channel:TChannel = CreateAudioStream(Music)
WaitKey


Redi's sample code does work fine.

And by the way, if Redi happens to read this, thank you very much for making the module available.


REDi(Posted 2009) [#2]
My pleasure PAX, nice to see its being used ;)

I will get round to adding this to MaxMod2 at some point, with a little help from cURL or something.


Pax(Posted 2009) [#3]
Hello again, other than using icecast to stream files, is there a way to load ogg files from internet?

Thanks.