0
0

Why am I getting [b:2pkby81t]err_invalid_handle[/b:2pkby81t] error when trying to invoke isPlaying() method on Channel object?

[code:2pkby81t] bool isPlaying = false;
if (channel != null)
{
result = channel.isPlaying(ref isPlaying);
ERRCHECK(result);
}[/code:2pkby81t]
where channel valu is kept in a field.

  • You must to post comments
0
0

When a channel completes some times it is invalidated. If you get FMOD.ERR_INVALID_HANDLE, that means it is not playing.

You can do something like this:
[code:2xif4xjb] bool isPlaying = false;
if (channel != null)
{
result = channel.isPlaying(ref isPlaying);
if (result != FMOD.ERR_INVALID_HANDLE)
{
ERRCHECK(result);
}
}[/code:2xif4xjb]

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.