0
0

Hi~ ๐Ÿ˜€
I have a trouble with FMOD::Channel::setDelay function.

[code:2awn77ah]

pSystem->createSound("test.wav", mode, NULL, &pSound);
if(pSound)
{pSystem->playSound(FMOD_CHANNEL_REUSE, pSound, false, &pChannel)
{
pChannel->setDelay(FMOD_DELAYTYPE_END_MS, 1000, 0));
pChannel->setLoopCount(0));
bool bIsPlaying = false;
for(;;)
{
FMOD_RESULT rt = pChannel->isPlaying(&bIsPlaying);
if(rt != FMOD_OK)
OutputDebugStr(GetPrintString("FMOD error! (%d) %s\n", rt, FMOD_ErrorString(rt)));
if(!bIsPlaying)
break;
}
}[/code:2awn77ah]

FMOD::Channel::setDelay function makes FMOD_ERR_INVALID_HANDLE. ๐Ÿ˜ฅ
It works well. But I hate error message.
Why FMOD::Channel::setDelay function makes invalid handle?
please Help Me!!
My FMOD Ex API version is 4.14.05
Best regards. ๐Ÿ˜†

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.