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

Limit for Sound #20

Open
G0dC0der opened this issue Oct 6, 2014 · 0 comments
Open

Limit for Sound #20

G0dC0der opened this issue Oct 6, 2014 · 0 comments

Comments

@G0dC0der
Copy link

G0dC0der commented Oct 6, 2014

I think Sound should have a limit, which define the maximum number of times a sound can active at once(default is infinite).

So, I have a sound instance called magicSound which plays a 3 second sound:

magicSound.setLimit(2);

If I do:

magicSound.play();
magicSound.play();
magicSound.play();

The third call will be ignored since two are already playing.

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

No branches or pull requests

2 participants