MS ADPCM encoded .wav files with 16 bits per sample fail to load with FMOD_CREATESAMPLE and FMOD_CREATECOMPRESSEDSAMPLE flags, while FMOD_CREATESTREAM works as expected, but 4 bits per sample files always fail. Outputting the log, [ERR] CodecWav::readInternal : acmStreamPrepareHeader returned 512. can be seen. Tools such as VLC can play those files and display their codec information, so the header seems to be valid.
From what could be understood in the documentation, this format is supported, and the log suggests that there is an attempt to load it. Is this a bug that’s meant to be fixed, or an expected behavior?
This problem can be reproduced in FMOD 2.03.11, as well as 1.10.20.
4bit MS ADPCM is working fine for me as stream/sample/compressed in the latest version of FMOD. I don’t seem to have a 16bit MS ADPCM option in any of the DAWs I have installed- what DAW did you use to export these audio files?
Can you please upload some of the files that are failing to play to your FMOD Profile?
It’s not possible to upload a file to my profile without registering a product, and it’s not possible to register a product as a non-commercial profile. I could upload those files to my OneDrive and share the link there if that’s permitted.
The files come from user-provided content, so it’s impossible to tell which DAW was used to produce them. Likely, they were produced with some early 2000s software. FMODex used to not have problems with them.
Sure you can send me a OneDrive link instead.
Thanks, I can repro with these files. Looks like they have some sort of abnormal length which is affecting our decoder- I have passed this onto the Dev team to investigate further.
I’m finding these files open fine in Reaper, so in the meantime you could potentially re-export these files in a DAW as a workaround.