Page 1 of 1

Audio support

PostPosted: Wed Feb 18, 2009 9:52 pm
by zygoth
Why does GE not support compressed audio formats like .ogg, etc. for sound effects? I am trying to make my game as small as possible but big .wav files take up tons of space for sound effects. Is there any way to use .ogg for the PlaySound function, or some workaround? I tried converting to .aif but it wasn't any smaller.

Re: Audio support

PostPosted: Wed Feb 18, 2009 11:46 pm
by makslane
Decode a .ogg file is slow and is not suitable for sound effects.
More, to play a sound effect, the whole file goes to the memory.
For musics, thats are bigger than sound effects, only the small parts are put in the memory and played at time.

Re: Audio support

PostPosted: Thu Feb 19, 2009 2:31 am
by zygoth
I guess that makes sense... I will just have to trim the sound effects as much as possible then. But...if loading during the game is the only problem, couldn't the editor just convert the sounds at the start of each game to an uncompressed format? Maybe you could look into that in future versions. hmm...Is there any good way to make the .dat files smaller, like a certain type of compression? Due to bad planning on my part, my finished game is going to be about 70 Mb, which is bad. Can you give me any advice?

Re: Audio support

PostPosted: Thu Feb 19, 2009 4:25 am
by pyrometal
Here is my advice, for your graphics use GIFs or PNGs, and for music, there exist smaller file types than OGG out there! You should consider modules such as .IT and .XM (which are better than midis, and I haven't seen any of those exceed 50kb before) There's also more I must tell you, but I'll send a PM to you instead of revealing spoilers! lol