0
0

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;
FMOD_RESULT res;
res = FMOD_System_CreateSound(
g_fmod,
(const char*)&w->m_sample[ 0 ],//path,
FMOD_OPENMEMORY |
FMOD_CREATESTREAM |
((0 == w->m_stereo) ? FMOD_3D : FMOD_2D) |
FMOD_SOFTWARE,
&ci,
&pSound );
[/code:1vwkm844]

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.

  • You must to post comments
0
0

They are only small samples (34kb and 35kb) so I can e-mail them to you instead if you perfer.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.