PureBasic - Module Lib (endless playing?)

Everything else that doesn't fall into one of the other PB categories.
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

PureBasic - Module Lib (endless playing?)

Post 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...
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
THCM
Enthusiast
Enthusiast
Posts: 276
Joined: Fri Apr 25, 2003 5:06 pm
Location: Gummersbach - Germany
Contact:

Post by THCM »

Just change the module and add a position jump to the first pattern. That should do the trick.
The Human Code Machine / Masters' Design Group
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post 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:
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
THCM
Enthusiast
Enthusiast
Posts: 276
Joined: Fri Apr 25, 2003 5:06 pm
Location: Gummersbach - Germany
Contact:

Post 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...
The Human Code Machine / Masters' Design Group
Fred
Administrator
Administrator
Posts: 18557
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

It should work, a change has been done in this aspect lately.
Post Reply