Forum > Game Maker Help and Discussion

How to optimize music usage in gamemaker?

(1/2) > >>

gpremier:
Hi!

I'm working on a game of my own, and currently i use gamemaker pro 7. However, i just added 3 mp3, and then the loading time became VERY long. I know that in mkf, ogg files were used to solve that problem. I tried that myself, but gamemaker 7 doesn't seem to be able to read ogg files.

Can someone give me any advices about it? I heard about extension for enabling ogg files, but none have worked so far. Once the game work, there is no problem with mp3, but the long loading time make it a pain to debug since it save and reload at each try.

Thanks in advance!

lordcyber:
Debugging can be a pain when the game gets bigger with music and sprites and the game turns a little more ambitious.
The best way,in my opinion, is using FMOD dll.He can load ogg files,and do nice stuff, like defining the start and the end of a looping.The only problem is that has a lot of script functions(and to pratical and simple way,you will only less than 10% of them,so you can delete a lot of then).
I used it from the code made and organized by Captain Cook, when I was programmer in KRPG(In a better life state,maybe I return and use my experience from Ninjular.....)
Anyway, I could give you a simple game file that help you to learn the basics of the FMOD.You will need give credit to Captain Cook(don't need credit me for nothing,really).
I just don't remember that has some compatibilites issues with GM7PRO (or not).
So wait a bit from my help,unless if someone can help you faster than me.

PS:Maybe you will have another problem in the future:long loading time due the excess of the rooms or room's content.So I advice you read my post that deals with this.So you will need travel in the proggramer's hell less times than me.

gpremier:
Thanks! But you don't need to send me an example file, i'll do my research about the FMOD.dll you just mentioned. If it doesn't work with Gamemaker 7, then maybe it's time to me to buy the next version.

I will also look at your post about rooms, i'm trying to get all the trick i can get to do a game that feels professionals before working more seriously on my current project. The music problem just caught me by surprise!

Wetwoo:
I highly recommend using OGGs for your music for these reasons:

1. Provided the source file (MP3, whatever) is of high quality to begin with, converting to quality 0.0 OGG Vorbis format results in very little to almost no degradation in sound quality.
2. A Quality 0.0 OGG Vorbis file is between 75% to 80% smaller than the same file in 16-bit stereo 44100Hz 320kbps MP3. The difference between the two sonically is almost nil. The original MP3 (in 16-bit stereo 44100Hz 320kbps) for SMFR's Athletic theme, We Have Lee But You Don't Have, is 5,916KB in size. The same file converted to Quality 0.0 OGG Vorbis is a mere 1,287KB in size, 78% smaller with almost no loss in sound quality.

This means you can have high quality external music that does not add too much to your game's total filesize. SMFR v0.3, including all OGG music, is just 55MB in total.

Gibbering Mouther:
Don't include music files in the executable if you don't have to (and there's just about no reason why you'd have to).

Given that you're using PRO, that should be possible. Also, I'd recommend using the GMFMODSimple DLL instead of Game Maker's built-in sound system--it can play OGG files.

Navigation

[0] Message Index

[#] Next page

Go to full version