I’m playing with FMOD Ex, with always in mind the idea to build a nice soundtracker.
I found that opening .IT files with “FMOD_CREATECOMPRESSEDSAMPLE”, is interpreted like “FMOD_CREATESTREAM”.
Actually, this is what I think because the .IT file stays locked by FMOD while being played.
This is not the case with a MP3 file (in this case the file can just be deleted when playing…).
From the doc :
“If the sound data is not ADPCM, MPEG or XMA it will behave as if it was created with FMOD_CREATESAMPLE and decode the sound into PCM.”
But, if the .IT was open with FMOD_CREATESAMPLE, the file wouldn’t be locked by FMOD Ex.
I tested opening a .IT file with FMOD_CREATECOMPRESSEDSAMPLE | FMOD_OPENMEMORY.
It works as I want :
– sound stays in “compressed” form in memory.
– plays perfectly.
– does not lock file (because I have control over this).
So it’s just either a library bug, either a doc bug.
(Sorry to post on many different subjects, but I’m pleased to give feedback about this library).
- cpierron asked 13 years ago
- You must login to post comments