Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Stopping a paused sound doesn't #44

Open
WarpRulez opened this issue Aug 30, 2017 · 0 comments
Open

Stopping a paused sound doesn't #44

WarpRulez opened this issue Aug 30, 2017 · 0 comments

Comments

@WarpRulez
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant