Looping OGG Music

BlitzPlus Forums/BlitzPlus Programming/Looping OGG Music

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

There is no 'looping' parameter with PlayMusic(). [EDIT]Turns out there is in BlitzPlus - doesn't work here either though[/EDIT]

You have to check to see if the channel is still playing, and if not, restart it manually, thus:
Handle = PlayMusic("music.ogg")

While Not Keydown(1)
  If Not ChannelPlaying(Handle)
    Handle = PlayMusic("music.ogg")
  EndIf
Wend