The Daily Click ::. Forums ::. Non-Klik Coding Help ::. Cross-frame music in MMF2
 

Post Reply  Post Oekaki 
 

Posted By Message

Levirules



Registered
  27/09/2008
Points
  37
17th November, 2008 at 03:49:46 -

OK, I obviously need an extension to play MP3's, my real question: is there any way to globally play music so to speak? Like, I realize sounds played through MMF2's built in sound player stop when a frame changes, are there any objects that don't stop playing music when a frame changes?

If not, I have two other ideas that could simulate the effect (or at least produce something that is less annoying than changing the music where I have the frames split). One idea involves keeping track of the music position (how many seconds since it has started or looped) with a global value, then starting the same song in the next frame at that point. That would require an extension that would allow me to start a music file at 15 seconds into the song, for example, instead of at the beginning of the song. This option would be sufficient, as long as there is an extension that is capable of this.

If not, then {
I've heard briefly of something called a subapp. Is this alterable/controllable by the main app? Or is it just a way for an app or game to open another one? I'm thinking, when the game starts, it could open a subapp that runs in the background, and you just tell the subapp when to play music... That way, when the frame changes in the main app, the subapp wouldn't change frames, and it would continue playing the music with no break.

Please let me know if any of these things are possible! I'm working on a Metroidvania IWBTG clone, and the way I have the overworld map (if that's what you want to call it) split up, music stopping and starting at frame breaks just wouldn't make any sense. Thanks!

-Levi

 
n/a

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
17th November, 2008 at 04:00:57 -

Direct Show object can play MP3s and play them across frames. In the extension's properties you need to make sure the "global" box is ticked for it to play the mp3 across frames

 
n/a

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
17th November, 2008 at 04:26:31 -

For MMF2's built in player, go to the application properties and choose the Runtime options tab (the paper with the play button). Scroll down until you find Sound Options and click Play sounds across frames.

 
Sandwich Time!Whoo!

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

Levirules



Registered
  27/09/2008
Points
  37
17th November, 2008 at 17:21:36 -

You guys rule. Thank you so much. Way better help than Google.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
17th November, 2008 at 19:13:06 -

I would recommend converting the music into OGG format, that way you don't need to use an extension, MMF2 supports that normally.
You can easily convert the music with a program like Goldwave.

 
.

W3R3W00F

Drum and Bass Fueled Psycho

Registered
  08/11/2008
Points
  374

VIP MemberCardboard BoxThe Cake is a Lie
19th November, 2008 at 02:58:38 -


Originally Posted by -Adam-
Direct Show object can play MP3s and play them across frames. In the extension's properties you need to make sure the "global" box is ticked for it to play the mp3 across frames



I was going to request the same thing.

 
An old and washed up once-kid

Levirules



Registered
  27/09/2008
Points
  37
22nd November, 2008 at 22:28:12 -

Ok, well now that I've finally gotten around to downloading DirectShow, it works great... only it doesn't seem to want to stop music that I started in a different frame. Right now, I have global checked, so it doesn't stop the music when I enter a new frame. I have a separate DirectShow object in each frame, all named the same thing; checking global did not make them show up in the events editor of the other frames. How do I get the music to stop in one frame when it was started in another?

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
23rd November, 2008 at 01:55:27 -


Originally Posted by AndyUK
I would recommend converting the music into OGG format, that way you don't need to use an extension, MMF2 supports that normally.
You can easily convert the music with a program like Goldwave.



Agree'd, and the benefits of OGG's include but are not limited to:
OGG's is a good 1/3 the size of an MP3 with no loss in quality.
The EXE is slightly bigger, but music no longer needs to be external.
Your music is for the pretty well protected from anyone just copying and pasting your music without your permission.
Use extensions only when you truly need them. And converting MP3 to OGG will take away your reliance on a music extension.

 
http://www.facebook.com/truediamondgame

Levirules



Registered
  27/09/2008
Points
  37
23rd November, 2008 at 02:58:49 -

I tried converting an mp3 to ogg with Audacity, and MMF didn't want to see it. I wonder if it was the way it was encoded? I'll try it again, as well as using a different program to convert the music.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click