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

[Request]setVolume for Sound #17

Open
G0dC0der opened this issue Mar 29, 2014 · 3 comments
Open

[Request]setVolume for Sound #17

G0dC0der opened this issue Mar 29, 2014 · 3 comments

Comments

@G0dC0der
Copy link

setVolume for Sound is a useful feature that save us coding.

I have actually added this myself to a modified TinySound, but I prefer to use the original one.

@finnkuusisto
Copy link
Owner

I had deliberately tried to keep state out of the Sound interface since any single sound can be played multiple times simultaneously. To allow playing a Sound at different volumes, I overloaded the play() method to include one that allows the caller to specify the volume. Are you aware of that functionality? It sounds like that should accomplish what you want.

@G0dC0der
Copy link
Author

Yes I am aware of that method.

There are functions that alter the volume of a sound without playing them(for future use).

I will try to show you a constructive example tomorrow.

@G0dC0der
Copy link
Author

G0dC0der commented Apr 7, 2014

Sorry, been busy. Will try to show an example later on this week.

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