I am trying to figure out what is the best sound format to use on CE. What I need is quick loading, a small file size, and small memory usage when loaded. I find that simple 8 bit 22k wavs have the best combination of these. (oggs take a long time to load and get decompressed into memory which uses a lot more memory than 22k wavs)
I then tried 4bit 22k MS ADPCM and was very happy about the quality and filesize, but they seem to be decompressed into memory, the thing I don’t understand is they seem to be fully decompressed to 44k (based on the fmod memory usage), even when the fmod playback rate is only set to 22k?
I was wondering if there is a another format I should be looking at, or perhaps some setting I can change in fmod so the ADPCM wavs use a smaller amount of runtime memory?
(I can post my exact memory usages, load times, etc if needed when using various formats if that helps you at all.)
- mm40 asked 11 years ago
I haven’t tried streaming yet, would it have a big impact on performance on CE?
Currently, when I have my sounds loaded, no matter what format they are in, they use the same amount of memory. Shouldn’t they use less memory if fmod is set to a lower playback rate (ie 22k instead of 44k)?
Also, on the PC I find they use less memory, but on CE they do not, is this because of the hardware driver on the PC?
Streaming isn’t an option then as I’m playing many different sounds at once (sound effects). I am using FSOUND_GetMemoryStats(&soundcur, &soundmax); and the soundcur variable to track memory usage by fmod 3.72. I am targetting all CE devices 100mhz and up.
I looked at the 3.74 changelist, thanks. Is ADPCM supported on the PPC? It doesn’t seem to be working for me.
The same call works fine with ogg or a normal wav, but not with an ADPCM on CE, I use the same code on the PC and it is working in all cases…
m_sample = FSOUND_Sample_Load(FSOUND_FREE, (const char*)abData, FSOUND_NORMAL|FSOUND_LOADMEMORY|FSOUND_LOOP_OFF, 0, cbData);
BTW I am using the full CE dll and not the stripped one.
ok thanks, I am using MS ADPCM so that must be why, funny that it works on the PC but not on PPC. Also regarding the size I am using compressed files because the disk size of the sound file is important, its a pain trying to weigh all the factors, (disk size, load time, quality, memory use), but its great that fmod lets you choose from so many options
Please login first to submit.