Are you new? Sign up now
The Daily Click
Klik Coding Help
Looping a mp3 using dmc2 in tgf
28th February, 2009 at 14:35:58 -
Greetings. I've been trying to use the dmc2 object to play mp3s in tgf, and while I can get a song to play, it doesn't seem to want to loop. This is what I have;
Start of level:
OpenStream "C:\GFactory\Games\MUSIC\06_Nordican Army.mp3"
PlayStream(looping = 99)
28th February, 2009 at 15:18:01 -
try looping = 1
Dr. James MD
28th February, 2009 at 15:32:42 -
Is it not -1 for unlimited looping, or is that just some strange legacy coding stuck in my head?
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
28th February, 2009 at 15:43:59 -
I alwys thought it became 0 for infinite looping in MMF2. That's the first time I ever even saw infinite looping.
JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
1st March, 2009 at 12:41:13 -
James, it's -1 for looping samples in MMF but DMC2 is an extension.
I could be wrong but I remember DMC2 being a binary switch rather than a loop x times thing. Doesn't it say in the title bar of the dialog box when it asks you for a number?
1st March, 2009 at 13:05:46 -
Bleh, I've never bothered to figure it out. The MCI object has always done what I needed. I could show you how to do it with that, if you'd like.
1st March, 2009 at 13:08:06 -
I tried changing it to 1 and it seems to work now. Thank you.
Worth A Click