I've searched all the forums and things I can find on Maxmod, but don't have an answer yet. Is it possible to stream audio from an http server using OpenAL? Currently I'd like to incorporate HBR1.com's free OGG streams into a game as an option. I would have thought this code would do the trick:
This code works fine with a local URL. Unfortunately here it just gives an unhandled memory exception error, with no debug info. Any feedback would be great.
Import MaxMod.AudioStream Import MaxMod.OGG If EnableOpenALAudio() If SetAudioDriver("OpenAL Generic Software") Local vMusicChannel:TChannel = AllocChannel() If ChannelPlaying(vMusicChannel) = False vMusicChannel = CreateAudioStream("http::radio.hbr1.com:19800/ambient.ogg") EndIf WaitKey() End EndIf EndIf
This code works fine with a local URL. Unfortunately here it just gives an unhandled memory exception error, with no debug info. Any feedback would be great.