0
0

Hi,

I’m running
if(FMOD_System_Create(&m_pclSoundSys) != FMOD_OK) goto error;
if(FMOD_System_Init(m_pclSoundSys, MAX_CHANNELS, FMOD_INIT_NORMAL, NULL) != FMOD_OK) goto error;
Then load sounds.

Then
FMOD_Sound_Release(); for all sounds
FMOD_System_Close(m_pclSoundSys);
FMOD_System_Release(m_pclSoundSys);

Then do it all again. The sounds all plays but the output is choppy and in slow motion.

The reason for init/deinit more than once is to be able to save the rendered sound on command with
FMOD_System_SetOutput(m_pclSoundSys, FMOD_OUTPUTTYPE_WAVWRITER); or have output to the speakers.

But no matter how I do it the sound is always wrong the second time (output to speaker or output to file). If I do the WAVWRITER output the first time I init it all sounds ok in the file.

Why? Is it a bug?

Using 4.38.01, but was using 4.34.x before.

/Ronnie

  • You must to post comments
0
0

This is only tested in Windows (c). One MP3 is all that is playing (both times). FMOD_System_Update is run every 40ms.

  • You must to post comments
0
0

Solved: There was a bug in the code that started the mp3 more than once.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.