0
0

I’m having two problems that I really can’t seem to find the answer to.

I have two types of files, streams and sounds.

1) sounds will stop playing after 30 of them have been played. It doesn’t matter what sound I use or how far apart I play them. When going through my code, fmod thinks that it is playing the sound in a new available channel.
[code:11nho04g]
result = m_SoundSystem->playSound(FMOD_CHANNEL_REUSE, (*sound)->handle, true, &chandle);
if (result != FMOD_OK)
{
throw(std::exception("FMOD failed to initialize"));
}
if( chandle == NULL)
return false;
FMOD_VECTOR position = GetFMODVector(pos);
FMOD_VECTOR velocity = GetFMODVector(vel);
chandle->set3DAttributes(&position, &velocity);
chandle->setPaused(false);
return true;
[/code:11nho04g]

2) if I load my streams as a stream it will no longer loop. If they are loaded as a sound (non streaming) looping works fine.

I have setLoopCount(-1); in the code, so I know that the loop count is being set right but still isn’t looping.
[code:11nho04g]
m_SoundSystem->playSound(FMOD_CHANNEL_FREE, (sound)->handle, true, &chandle);
if( chandle == NULL)
return false;
(
sound)->chandle = chandle;
chandle->setMute(mute);
chandle->setLoopCount(-1);
chandle->setPaused(false);
[/code:11nho04g]

I don’t know if these are common problems, but if anyone needs to see more code, I can post it.

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.