Well...
I've been trying to get BlitzMax to play an OGG stream (streamed by http), however I get a "stream is not seekable" error.
Wouldn't it be possible to play an ogg stream using BlitzMax's modules directly ? The idea would be to be able to distribute a blitzmax-based player since many people were complaining to me about the fact most players can't play ogg streams.
For reference, my piece of test-code :
I've been trying to get BlitzMax to play an OGG stream (streamed by http), however I get a "stream is not seekable" error.
Wouldn't it be possible to play an ogg stream using BlitzMax's modules directly ? The idea would be to be able to distribute a blitzmax-based player since many people were complaining to me about the fact most players can't play ogg streams.
For reference, my piece of test-code :
Local socket:TSocket = CreateTCPSocket() If Not ConnectSocket(socket, HostIp("stream.ookoo.org"), 80) Then End Local stream:TStream = CreateSocketStream(socket) WriteLine(stream, "GET /radio.ogg HTTP/1.0") WriteLine(stream, "Host: stream.ookoo.org") WriteLine(stream, "") Local res$="x" While res<>"" res=ReadLine(stream) DebugLog(res) Wend Local sound:TSound = LoadSound(stream) PlaySound(sound)