Closed pixelzoom closed 2 years ago
I've added the level selection and back buttons into the "user-interface" sound category. I tested it by adding code to set the output level for this category to zero in equality-explorer-main.js
, and it seemed to behave as descired.
Assigning to @pixelzoom to review and to cherry-pick into an RC for which this change is needed.
I verified that this is working as desired in Equality Explorer. I'll leave self-assigned until we decide how to address https://github.com/phetsims/vegas/issues/77, which will determine whether I need to cherry-pick for phetsims/equality-explorer#177.
I've completed the cherry-picks for phetsims/equality-explorer#177. Closing.
This is a prerequisite to implementing the proposed fix in https://github.com/phetsims/vegas/issues/77#issuecomment-969214191.
When sound was added for vegas components in https://github.com/phetsims/vegas/issues/89, they were apparently not assigned to category 'ui-sounds'. Reproducible by adding this to a sim with a Game, like Equality Explorer:
soundManager.setOutputLevelForCategory( 'user-interface', 0 );
This should turn off all 'ui-sounds'. But some vegas sounds continue to play. (GameAudioPlayer sounds are expect to play - those are not the sounds we're tallking about here.) This is definitely a problem for LevelSelectionButton, and the "back" button in the scoreboard. I don't recall what other sounds were added in https://github.com/phetsims/vegas/issues/89, but it's probably a problem for them too.