How to know when a song is done?

BlitzMax Forums/BlitzMax Programming/How to know when a song is done?

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.

Would this work with eg. openAL?

And could someone please post a very basic openAL example. I have searched the forum for examples, but have not found anything simple.

I did found some indication about having to pick the openAL driver. The reason I am asking is that the following code does not work with mp3, so it looks like more work is needed.

sound = LoadSound ("music.mp3")
channel=PlaySound (sound)
While ChannelPlaying(channel)
	Print ChannelPlaying(channel)
Wend