Is there a way I can check if the channel is valid.
chanel are autumaticaly freed when the song is stoped( as far as i know) and if I want to set the volume for for a stopped song I get a INVALID_HANDLE error.
Is there a way to check if it is valid or just call the function and check the returned value?
- miko asked 11 years ago
It would be nice to be able to ask a channel if it’s valid rather than attempt to call a function and check if that function failed.
Alternatively perhaps System::getChannel could return a NULL Channel*.
Seemingly minor point but I ran up against it just now and was confused for rather a long time as to why my valid-looking code kept throwing errors (looping over and setPaused(true) on all channels when my app loses focus).
I think there should always be a way of querying FMOD in a way that yields FMOD_OK, and that errors are just that – errors. Rather than a way of querying the system.
- Paul answered 10 years ago
Please login first to submit.