STORM-830 Volume slider isn't properly remembered if set to zero
Review Request #72 - Created Jan. 6, 2011 and submitted
Jonathan Yap | Reviewers | ||
2.5 | viewer | ||
STORM-830 | |||
None | viewer-development |
There is an edge case in setMasterGain during startup which prevents setInternalGain from being called if the master volume setting and mInternalGain both equal 0. Setting mInternalGain to a very low but non-zero value fixes this issue.
In Preferences / Sound & Media tested: Buttons Ambient Sound Effects Stream Music Media Voice Chat
Posted (Jan. 6, 2011, 5:37 p.m.)
This is really not how you want to deal with this bug :/. It's a known fact that audio mixers are very bad with low volumes. Setting a volume to 0 (or something really small) can put a very high load on the CPU for the audio mixer, which causes severe problems. See https://jira.secondlife.com/browse/VWR-14914 So, on the contrary (as VWR-14914 fixed a horrible bug that made FPS drop drastically): when the volume is set to 0 (or even close to zero) the audio channel has to be muted and not mixed, ever. Assuming that VWR-14914 is in Viewer 2, and wasn't broken in the meantime, a volume of 0 would cause the channel to be muted, but setting it to 0.000001 will not cause it to be muted, but result in a high CPU load.
Other reviews