You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered: