Hello FMOD,

We have noticed that decoding and playing .oxm files takes massive amounts of memory compared to .xm.

[b:26gu5nk6]Is this normal?[/b:26gu5nk6] It pretty much cancels out the good things about .oxm files. Here’s a short example:

File size:
Original .oxm 1,1 MB
Original .xm 2,2 MB

Memory consumption .oxm 8,41 MB
Memory consumption .xm 3,85 MB
(loading just the patterns, without samples, takes ~1,94 MB memory, yes, there’s a huge amount of them)

Memory usage were measured using Allocations Instrument.

Here’s a clip of the code used to play the modules:

[code:26gu5nk6]char buffer[200] = {0};
[[NSString stringWithFormat:@"%@/%@", [[NSBundle mainBundle] resourcePath], song] getCString:buffer maxLength:200 encoding:NSASCIIStringEncoding];
result = FMOD_System_CreateStream(soundSystem, buffer, FMOD_SOFTWARE | FMOD_LOOP_NORMAL | FMOD_2D | FMOD_LOWMEM, NULL, &bgmSound);
//[self errorCheck:result];[/code:26gu5nk6]

  • You must to post comments

Forgot to mention, this happens on iOS.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.