As a music fan, I want audio to fade in gently so my immersion is increased
Review Request #520 - Created Nov. 23, 2011 and submitted
Jonathan Yap | Reviewers | ||
v3.2.1 | viewer | ||
STORM-591 | |||
None | viewer-development |
Audio fading in has been added for when a music stream starts. Audio fading out has been added for when there is a change in the music stream that is playing. Two dead files have been eliminated. An existing bug in how music was not being paused correctly has been fixed. When you are teleporting you will hear the music stream from the place you are leaving. This is a change in behavior; previously the music stream was stopped when the teleport progress bar was being displayed. This code change affects several areas where music is started or stopped. The new code has evolved significantly, so please look for things that might not "make sense."
See the massive test plan in the jira.
Posted (Nov. 23, 2011, 7:32 a.m.)
A couple of minor suggestions, but generally very clear and clean code. Kudos for good use of the singleton pattern.
-
indra/newview/llpanelnearbymedia.cpp (Diff revision 1) -
Please fix (and in the else below) to match the coding standard; add the braces. https://wiki.secondlife.com/wiki/Coding_Standard#Braces
-
indra/newview/llvieweraudio.cpp (Diff revision 1) -
I think this would be clearer if it were written as a switch statement without the early returns.
-
indra/newview/llvieweraudio.cpp (Diff revision 1) -
If you add an 'else' here, you can replace all the early returns in this method with assignments to a 'bool fadeIsFinished = false;' variable and return that at the bottom.
Posted (Nov. 23, 2011, 8:18 a.m.)
Quick comment regarding behavior...we really should not play any audio during the teleport blackout as it is disconcerting to feel like you are still in an area (hearing the audio) but not be able to see or interact with anything. Everything else sounds great.
Looks good. Nice job overall bringing the pieces together and excellent test plan.
-
indra/newview/llvieweraudio.cpp (Diff revision 1) -
Minor point - maybe a warning where you define the fade in/out times that they should not be zero, even for testing.
Ship It!
Review request changed
Updated (Dec. 2, 2011, 7:55 a.m.)
-
- added Diff r2
New diff based on requested code review changes.
Review request changed
Updated (Dec. 5, 2011, 2:07 a.m.)
-
- added Diff r3
Made changes per code review requests: Took care of case where division by zero is possible Removed early returns Music does not play when the teleport progress bar is displayed Also made a change so that the fade in timer during login is reset until STATE_STARTED is reached. This helps fix not hearing a full fade in during login.
Review request changed
Updated (Dec. 11, 2011, 7:14 a.m.)
- changed from pending to submitted
Other reviews