I have a simple set of FMOD actions that each play various sounds separately. The problem comes in that I have a button that stops all the sounds. FMOD crashes my program if we try to stop a sound that isn't playing. Makes sense. But I've decided that there has to be a way to call a simple if statement to find out "if" and only "if" somethings playing, then stop it.
- (IBAction)myButton:(id)sender {
if "FMOD CHANNEL IS PLAYING" {
result = fmodChannel->stop();
}
}
Any help would be appreciated.