0
0

Hi,

I create a sound:

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

then I play it:

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

then when I use the m_Channel->stop() and playSound again and again

after 2 -3 times I get an Access violation in fmod for the playsound or set position method.

what am I doing wrong?

does Stop releases the Channel?

does Stop releases the sound?

10x

  • You must to post comments
0
0

Ok I think I got it it is probebly threads staff, I have an infinit loop for getting time info and calling the update method.

will usinf mutex help or I have to put all my calls form the same thread?

  • You must to post comments
0
0

Ok I used a flag and stopped calling the update and time onformation methods when one command before is call the stop method.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.