The Daily Click ::. Forums ::. Klik Coding Help ::. Looping a mp3 using dmc2 in tgf
 

Post Reply  Post Oekaki 
 

Posted By Message

tetsuya_shino



Registered
  12/08/2004
Points
  491
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:

InitBASS()
OpenStream "C:\GFactory\Games\MUSIC\06_Nordican Army.mp3"
PlayStream(looping = 99)

 
n/a

nim



Registered
  17/05/2002
Points
  7229
28th February, 2009 at 15:18:01 -

try looping = 1

 
//

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
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?

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
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.

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

nim



Registered
  17/05/2002
Points
  7229
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?

 
//

RedEnchilada

formerly RedEchidna

Registered
  01/08/2008
Points
  301

VIP MemberWii OwnerThe Cake is a LiePicture Me This Round 24 Winner!
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.

 
http://www.youtube.com/watch?v=WYrSD35vHo4
woooooooooooooooooaah maaaaaaaaaaaaaaaaaaaaan

tetsuya_shino



Registered
  12/08/2004
Points
  491
1st March, 2009 at 13:08:06 -

I tried changing it to 1 and it seems to work now. Thank you.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click