The Daily Click ::. Forums ::. Klik Coding Help ::. Mp3 Looping!
 

Post Reply  Post Oekaki 
 

Posted By Message

Lukas Hägg



Registered
  02/01/2004
Points
  642
26th October, 2004 at 12:23:35 -

I searched both the boards and article sections and found nothing.

So I finally got TGF to play mp3. But now I need to loop them too. I have no clue on how to get the MCI object to do that. It's probably as easy as one-two-three.

 
Mendokuse...

daveC04



Registered
  26/09/2004
Points
  163
27th October, 2004 at 01:59:44 -

cant you just use the DMC2 object, mci is lame.

 
n/a

Lukas Hägg



Registered
  02/01/2004
Points
  642
27th October, 2004 at 13:01:02 -

no, because TGF doesn't have that and I don't have the extension for it either.

 
Mendokuse...

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
27th October, 2004 at 13:13:26 -

Yes, DMC2 DOES exist in TGF. Go to ClickTeam's site, go to support, extension list, and Quick search for DMC2. Set type to 'all'. It's in the ZIP, together with the MMF version.
About the looping, I'm trying to figure that out, too.

Image Edited by me, the great Vincent Beers.

Image Edited by the Author.

 
Old member (~2004-2007).

Lukas Hägg



Registered
  02/01/2004
Points
  642
27th October, 2004 at 14:18:07 -

OK now I have the DMC2 thingie. It's a little annoying that the .dll file has to be in the same folder as the standalone when finished. Not entirely sure how to work this thing though.
...

Geez! It was harder to do than I thought! :/

Image Edited by the Author.

 
Mendokuse...

Lukas Hägg



Registered
  02/01/2004
Points
  642
27th October, 2004 at 14:46:05 -

I actually sorta solved the problem on my own. For some reason the built in loop feature in the DMC2 object doesn't work for me, so when I want to loop I ad a group with just one event that reads:

Stream stopped --> PlayStream

Simple. However, as we all now, there is a small pause between when loading up the "next" file to play it again!
Don't know a way around that one besides altering the sound file itself to make it longer.

 
Mendokuse...

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
27th October, 2004 at 16:23:02 -

Do you have DMC2 version 1.02?

Image Edited by the Author.

 
- Tigerworks

Lukas Hägg



Registered
  02/01/2004
Points
  642
27th October, 2004 at 23:22:06 -

Nope. It's v. 1.01

 
Mendokuse...

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
28th October, 2004 at 09:26:52 -

So it might help to get v1.02. Maybe they fixed a looping problem.

 
- Tigerworks

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
30th October, 2004 at 11:26:00 -

And what about looping a stream in, like, the tenth second?
I want to do this because I want to create a stream with intro, then loop to a place where the intro ends.

 
Old member (~2004-2007).

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
30th October, 2004 at 12:04:46 -

Yes, you can use the GetStreamPos() value to recognise the end of the MP3, and SetStreamPos() to set it back to where you want it to loop from.

 
http://www.davidn.co.nr - Games, music, living in America

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
1st November, 2004 at 02:20:20 -

I tried setstreampos(), but there are some definitions unknown for me.
How does the streampos value work (every 1/100 sec, 1 sec, 10/sec?) and what's chan?

 
Old member (~2004-2007).

Lukas Hägg



Registered
  02/01/2004
Points
  642
1st November, 2004 at 06:05:52 -

v1.02 don't work with TGF.

 
Mendokuse...
   

Post Reply



 



Advertisement

Worth A Click