GLBasic forum

Main forum => GLBasic - en => Topic started by: AndyH on 2008-Jan-28

Title: PLAYMUSIC looping and detect playing?
Post by: AndyH on 2008-Jan-28
Is it possible to force music to loop.  I've just started testing this today, playing an MP3.  It will play once then stop.

Also, is it possible to detect if music is playing like the SOUNDPLAYING() function?


If not can the above be added?
Title: PLAYMUSIC looping and detect playing?
Post by: PeeJay on 2008-Jan-28
Funnily enough, Andy, I was just coming on the forum to suggest adding LOOPMUSIC myself :D
Title: PLAYMUSIC looping and detect playing?
Post by: Schranz0r on 2008-Jan-28
using fmod.dll to do that....
but windows only :/
Title: PLAYMUSIC looping and detect playing?
Post by: AndyH on 2008-Jan-28
Thanks Schranz0r, I'm looking for something that will work on windows, PocketPC and GP2X though.
Title: PLAYMUSIC looping and detect playing?
Post by: PeeJay on 2008-Jan-28
Should be easy to implement - all it needs it to compare the time the music has been playing against the internal clock - but, like Andy, I think it would be nice to include it as part of the language
Title: PLAYMUSIC looping and detect playing?
Post by: Kitty Hello on 2008-Jan-28
It doesn't loop? ~*$%&!!!!!
I go definitely insane with that music function...
Title: PLAYMUSIC looping and detect playing?
Post by: Ian Price on 2008-Jan-29
It used to loop, but doesn't now. :(

[EDIT] While we're on the subject of music, is there any chance of getting .MOD/.IT/.XM etc. tracker music to play in future updates?
Title: PLAYMUSIC looping and detect playing?
Post by: Kitty Hello on 2008-Jan-29
Use the fmod dll. There's a wrapper for it.
On GP2X it *might* work out of the box, since I use SDL_Mixer for music.
Fixed that loop, bug, btw.
Title: PLAYMUSIC looping and detect playing?
Post by: Ian Price on 2008-Jan-29
Being a thicky - how do you use the FMOD.DLL? Just #Include it?

Good news about looping :)

Cheers.
Title: PLAYMUSIC looping and detect playing?
Post by: Kitty Hello on 2008-Jan-30
In Samples/_Projects_/FMod is a sample program and a fmod.gbas file. Just include it to your project and place the fmod.dll side by side with the game's .exe.
Title: PLAYMUSIC looping and detect playing?
Post by: Ian Price on 2008-Jan-30
Cheers Gernot :)