Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop all sounds in the sound bank in stopAllSounds #2351

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

apple502j
Copy link
Contributor

Resolves

Resolves #2320

Proposed Changes

stopAllSounds no longer uses _stopAllSoundsForTarget, instead it stops all sounds in the soundBank (by passing no arguments to SoundBank.stopAllSounds).

Reason for Changes

Because of some weird clone handlings, SoundBank.playerTargets can contain targets that are no longer in runtime.targets, so sometimes sounds become unstoppable.

SoundBank.stopAllSounds take an optional argument, and if passed (current behavior) only the specified target will have sounds stopped. However, this isn't necessary at all - it's expected to stop every sounds in every targets when VM's stopAllSounds is called.

Test Coverage

Manually tested with GUI+VM

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

Successfully merging this pull request may close these issues.

Sounds can't be stopped if it's playing on already-deleted clones
3 participants