- Home /
controlling all sounds from their volume point
hi i have a sfx volume control which changes all sfx volume between 0 and 1, but im trying to work out the best way to control all their volumes from their current volume point.
because the sfx change on each level im using an array to find all the sfx tagged when the menu is first opened, but how do i say to each one that 1 is their maximun volume relative to their current number so 1 may = 0.75 on another one
any ideas
Answer by J.D. · Aug 19, 2012 at 03:04 AM
Just use Math.
Your max volume is the 1 value. Your min is 0 value. Your average is your 0.5 value.
Instead of changing with direct values, just multiply by the actual volume.
If the sfx volume in that point is 0.3, so its max would be
-
1 = 0.3
and its average would be
-
= 0.15
yh of course it is, i gota stop asking questions at 4 am cheers i will get each sfx value and times it by the amount of the slider i set up
Your answer
Follow this Question
Related Questions
Problem implementing volume slider 1 Answer
lower volume on audio clip C# 1 Answer
Android: Ringer Volume Control 0 Answers
How does SetDensity find volume, and how can I get it? 1 Answer
Any way to change system volume? 2 Answers