I just tested streaming and its working very nicely.
One thing struck me odd - check this piece:
I just added the x button to start over after stopping. It works, too, but if you press X twice(or more often) after you stop the song it instantly starts over (once).
I just wonder about this queue and why it only happens once and not for subsequently pressing X?
Anyway great fun :)
One thing struck me odd - check this piece:
Import MaxMod.AudioStream Import MaxMod.ModPlayer 'EnableOpenALAudio() 'SetAudioDriver("openal") SetAudioDriver("directsound") Local file$ = RequestFile( "", MusicExtensions() ) Graphics 320,40,0 ; Cls ; DrawText("loading please wait...",10,10) ; Flip Local Channel:TChannel = CreateAudioStream( file ) Repeat Cls If KeyHit(KEY_R) ResumeChannel(Channel) If KeyHit(KEY_P) PauseChannel(Channel) If KeyHit(KEY_S) StopChannel(Channel) If ChannelPlaying(channel) DrawText("Streaming...",10,10) Else DrawText("Stopped...",10,10) If KeyHit(KEY_X) Channel = CreateAudioStream( file ) EndIf Flip Until AppTerminate() Or KeyHit(KEY_ESCAPE)
I just added the x button to start over after stopping. It works, too, but if you press X twice(or more often) after you stop the song it instantly starts over (once).
I just wonder about this queue and why it only happens once and not for subsequently pressing X?
Anyway great fun :)