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

Possible fix for failsound/applause not stopping #299

Merged
merged 3 commits into from
Jun 1, 2017

Conversation

Lyonlancer5
Copy link
Contributor

Overview

Hi again, I've put up a possible fix for #276 (translations would have to wait until I get the new options overlay merged)

Notes

The way it works rely on how getClip() works on the MultiClip class. On my setup, this solves the problem.
It doesn't mute the clip but instead stops it so it can be played again, although not completely sure if this will work in other setups...

Returns a Clip that is not playing from the list.
If no clip is available, then a new one is created if under MAX_CLIPS.
Otherwise, an existing clip will be returned

Devised a way to stop a currently active clip from playing by relying
mostly on the hacky way of getClip().

May or may not be the most ideal solution
@itdelatrisu
Copy link
Owner

Works for me too. Thanks!

@itdelatrisu itdelatrisu merged commit 59a9413 into itdelatrisu:master Jun 1, 2017
@itdelatrisu itdelatrisu added the bug label Jun 1, 2017
itdelatrisu added a commit that referenced this pull request Jun 1, 2017
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
@Lyonlancer5 Lyonlancer5 deleted the issue-276 branch June 6, 2017 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants