Finch
Finch copied to clipboard
Stopping a paused sound doesn't
If you pause a sound that's playing, and then stop it, the library doesn't stop it, which means that if you then try to resume the sound, it will start playing again. The normal behavior ought to be that if you stop a sound, it doesn't start playing when you try to unpause (ie resume) it.
The problem lies in these lines in FISoundSource.m:
- (void) stop { if ([self isPlaying]) { alSourceStop(_handle); } }
The conditional should also check if the sound is currently paused.