While setting up sounds using FMOD_System_CreateSound(…) we noticed that the a sample compressed at default quality was failing with the ERR_BAD_FORMAT error.
When the same source wav was compiled at a higher quality (4) the resulting ogg loaded without error.
For both samples the following format for the CreateSound() was used.
[code:1vwkm844] FMOD_SOUND* pSound = NULL;
res = FMOD_System_CreateSound(
(const char*)&w->m_sample[ 0 ],//path,
((0 == w->m_stereo) ? FMOD_3D : FMOD_2D) |
We curious as to what might cause this problem, as we batch process our entire sound library at default quality. As we have a large number of sounds (approx ten thousand) in our title, it is possible that other sounds may exhibit the same problem, possibly even if we were to change the compression quality for all of them.
- Codezombie asked 11 years ago
- You must login to post comments