Page 1 of 1

PureBasic - Module Lib (endless playing?)

Posted: Sun Jul 19, 2009 1:00 pm
by va!n
Hi PB-Team and others!
As i noticed, the module lib is now based on ModPlug instead of using midas.dll! Good change!

I know how to load and play a module... but is there any way (like flag) to play a tune repeated (so you have an endless tune whithout break?) like:

PlayModule( #Module, #Mode)

Mode 0 = Play only once,
Mode 1 = Play in loop (endless)

It would be more nice instead checking everytime the position of the tune and start it again...

Posted: Mon Jul 20, 2009 8:21 am
by THCM
Just change the module and add a position jump to the first pattern. That should do the trick.

Posted: Mon Jul 20, 2009 10:36 am
by Fluid Byte
THCM wrote:Just change the module and add a position jump to the first pattern. That should do the trick.
That doesn't work. :wink:

Posted: Mon Jul 20, 2009 10:53 am
by THCM
Fluid Byte wrote:
THCM wrote:Just change the module and add a position jump to the first pattern. That should do the trick.
That doesn't work. :wink:
Really? I didn't know, that ModPlug ingnores the PatternJump command in protracker or other tracker files... weird...

Posted: Mon Jul 20, 2009 10:55 am
by Fred
It should work, a change has been done in this aspect lately.