Hi ,

Is it possible that a sound handle becomes invalid after some time, I am creating a sound – with createSound but I call it twice immidietlly since I want it to be ready on 2 devices.

m_AudioSystem->createSound(strSongFileName.c_str(),(FMOD_MODE)(FMOD_CREATESTREAM | FMOD_ACCURATETIME),NULL,&m_Song)

m_MonitorAudioSystem->createSound(strSongFileName.c_str(),(FMOD_MODE)(FMOD_CREATESTREAM | FMOD_ACCURATETIME),NULL,&m_MonitorSong)

and then trying to play it after a few minutes(3 – 6 minutes) – with

m_AudioSystem->playSound(FMOD_CHANNEL_FREE, m_Song, 0, &m_Channel)

somtimes I get an Invalid Object handle error.


what am I doing wrong?

  • You must to post comments

Hi brett,

I am checking for error codes and have a trace for any error code that is other than – FMOD_OK, which did not happen in this case.

I do not know if the length is relevant however i mentioned it since I wanted to give all the info I have , maybe I am doing some other operation that is causing it to become invalid, Is there any operation that might cause a sound handle to become invalid? I will check for memory leaks maybe this causes it.

any other suggestion would be great.


  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.