TinySound
TinySound copied to clipboard
[Request]setVolume for Sound
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.
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.
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.
Sorry, been busy. Will try to show an example later on this week.