Felik Posted November 29, 2006 Report Share Posted November 29, 2006 [ATTACH]112[/ATTACH] Hello! I've recently invented a method how to make an endless playing music in your game for MMF 1.5-2. You know that when you use DShow or DMC2 extensions there is a little interval between music loops (when it finishes and starts again) And it is annoying because there is no interval in music in megadrive of gameboy advanes sonics. My method is using macromedia flash for it. You create a music swf with no video (only music playing swf file) and just load it with active X. I tried it on my game Sonic Fusion and it didn't affect on fps but music became perfect. I uploaded a tutorial to show you. The only thing you need is to download or buy a CD with Macromedia flash MX and build a Shockwave Flash Object. What do you think about that music playing method. Link to comment Share on other sites More sharing options...
hRook Posted November 29, 2006 Report Share Posted November 29, 2006 I like where your head's at. I'll try it out myself. Link to comment Share on other sites More sharing options...
Felik Posted November 30, 2006 Author Report Share Posted November 30, 2006 And nobody except Sage is interested in that? Ok... but if you'll use it please give me credit Link to comment Share on other sites More sharing options...
ila Posted November 30, 2006 Report Share Posted November 30, 2006 Give it time, from the topic of the title it sounds like you are asking for someone to help you with making endless music. Anyway this is an intuitive idea. I like it very much. It actually helps me out alot. Link to comment Share on other sites More sharing options...
Godmaster Posted November 30, 2006 Report Share Posted November 30, 2006 Well, I've searching to do this in GM6, and I just found an improvised way based on break up the music intro from its rest, and in object event, you first put the intro to play, and using alarms (a kid of time counter), like this: alarm[0] = ((room_speed)*30)*0.98; room_speed means the fps from the current room; 30 is the total of seconds from the intro duration; and 0.98 is a balance to avoid the empty intervals when the intro stops; Link to comment Share on other sites More sharing options...
Slingerland Posted November 30, 2006 Report Share Posted November 30, 2006 I like it, Felik. I certainly hate the pause as well. You think this should go to the R&D forum? Link to comment Share on other sites More sharing options...
Felik Posted November 30, 2006 Author Report Share Posted November 30, 2006 Thanks, Slinger but what is R&D forum? Link to comment Share on other sites More sharing options...
Slingerland Posted November 30, 2006 Report Share Posted November 30, 2006 For in-depth discussion about the inner mechanics of game creation...This is not a help forum, but rather a place to discuss the way things are (or could) be done. I just thought that, because Godmaster brought in his way of doing endless music. It's fine in either forum, I suppose, but I think this could be a great discussion on how to nail this method down. Link to comment Share on other sites More sharing options...
Felik Posted November 30, 2006 Author Report Share Posted November 30, 2006 Then administrators, please move this thread to R&D section. Link to comment Share on other sites More sharing options...
Slingerland Posted December 1, 2006 Report Share Posted December 1, 2006 Done and done. Let's R&D. Link to comment Share on other sites More sharing options...
Perfect Chaos Zero Posted December 1, 2006 Report Share Posted December 1, 2006 Wow, what an awesome idea! I was always pissed off by that myself, seeing a great solution coming into the light like this makes me very pleased. Link to comment Share on other sites More sharing options...
LarkSS Posted December 2, 2006 Report Share Posted December 2, 2006 Too bad I can't use it, neither can people without flash. Seems like a good solution though. Link to comment Share on other sites More sharing options...
hRook Posted December 2, 2006 Report Share Posted December 2, 2006 Now you can explain why you are other people wouldn't have flash. How do you internet? Link to comment Share on other sites More sharing options...
LarkSS Posted December 2, 2006 Report Share Posted December 2, 2006 The only thing you need is to download or buy a CD with Macromedia flash MX and build a Shockwave Flash Object. I'm moneyless. =P If I'm mistaken and his method is free, fill me in. I'm not an expert on this stuff and I'm not going to pretend to be one. Link to comment Share on other sites More sharing options...
Felik Posted December 2, 2006 Author Report Share Posted December 2, 2006 I've got Macromedia flash which I bought at the market. I'm sure that there is MF in the internet. Link to comment Share on other sites More sharing options...
Mark the Echidna Posted December 2, 2006 Report Share Posted December 2, 2006 Well, you can try Swish, it's cheaper. You may also find an older (yet complete) version of flash in a CD-ROM magazine... I got my MMF 1.0 CD this way... But there are probably other ways to achieve the same effect. Link to comment Share on other sites More sharing options...
Blue Frenzy Posted December 10, 2006 Report Share Posted December 10, 2006 Of course there are... and without external files. Link to comment Share on other sites More sharing options...
Yoshi Posted December 12, 2006 Report Share Posted December 12, 2006 Wow, seeing this thread makes me feel like I am taking the cheap way out I just make & use looping ADX's for my music and a modified in_cube to play them. Makes perfect looping and I could just copy & paste the music files from the Dreamcast era and later Sonic games. Well, for GM that is, I never really used MMF. But that's an interesting idea, I never would have thought of that. Link to comment Share on other sites More sharing options...
Lightning Posted December 12, 2006 Report Share Posted December 12, 2006 Wow, seeing this thread makes me feel like I am taking the cheap way out I just make & use looping ADX's for my music and a modified in_cube to play them. Makes perfect looping and I could just copy & paste the music files from the Dreamcast era and later Sonic games. Well, for GM that is, I never really used MMF. That doesn't sound like the cheap way out; that's actually rather brilliant. I'd say the cheap way out is making your game depend on something big and bloaty like Flash just to play looping music. But hey, whatever works =P Link to comment Share on other sites More sharing options...
Felik Posted December 12, 2006 Author Report Share Posted December 12, 2006 Why do you say "depend"? I don't think that my game depends on Macromedia flash because there is Macromedia flash player almost on every PC. Music from the game also becomes hard-to-stealable. Link to comment Share on other sites More sharing options...
LarkSS Posted December 13, 2006 Report Share Posted December 13, 2006 Music from the game also becomes hard-to-stealable. *points to Sound Recorder* Link to comment Share on other sites More sharing options...
Lightning Posted December 14, 2006 Report Share Posted December 14, 2006 Why do you say "depend"? I don't think that my game depends on Macromedia flash because there is Macromedia flash player almost on every PC. Music from the game also becomes hard-to-stealable. What I'm saying is that it makes more sense to use a component whose one and only job is to play audio than to invoke something that is designed for vector art and animation, scripting, etc. and all the overhead that comes with it. It's a waste of resources. It's probably hard for ordinary people to understand, but you'll see what I'm talking about if you ever get farther into the field of game programming. Additionally, it is almost trivial to extract contents of a Flash file these days =P And like LarkSS mentioned, if the user can hear the music, it's already able to be stolen. Link to comment Share on other sites More sharing options...
Felik Posted December 15, 2006 Author Report Share Posted December 15, 2006 What I'm saying is that it makes more sense to use a component whose one and only job is to play audio than to invoke something that is designed for vector art and animation, scripting, etc. and all the overhead that comes with it. It's a waste of resources.It's probably hard for ordinary people to understand, but you'll see what I'm talking about if you ever get farther into the field of game programming. I understand you but I don't care about it. I just use it. Link to comment Share on other sites More sharing options...
VectorSatyr Posted December 25, 2006 Report Share Posted December 25, 2006 Wait a minute, HOLD UP! I just make & use looping ADX's for my music and a modified in_cube to play them. How the hell did you modify in_cube to work in GM? Really, that so un-freak'n-believable... Link to comment Share on other sites More sharing options...
LarkSS Posted December 26, 2006 Report Share Posted December 26, 2006 Just out of curiousity, couldn't you ( using MMF ) load the mp3 into 2 different channels ( probably with the Modfx extension ), play the first channel, and then when it finishes, start the second channel and keep swapping? Since the mp3 is already loaded in the second channel, I'd think that it should be able to loop without a gap since no extra loading time is required. I may be wrong as this is just an untested thought. Another idea. Using DirectShow, couldn't you program it so when the play position ( in milliseconds ) reaches the total length minus *insert small number here*, play the song again? ( I mean literally play it, not stop and play as I'm guessing this might make the currently playing song continue as it loads it again for it to be replayed. ) Link to comment Share on other sites More sharing options...
Recommended Posts