PHASEDucker
An object that manages competing sounds.
Declaration
class PHASEDuckerOverview
When a sound plays in any of the source groups, this class lowers the volume of all the target groups so the listener hears the source sound more clearly. You set the source and target using PHASEGroup objects; see sourceGroups and targetGroups.
Lower Background Music During a Monologue
When an app plays a monologue, the background music may need to lower, or duck, to enhance the clarity of the vocals. The following code demonstrates a ducker that configures a group for background music, and another group for the vocals.
When an app sets up the ducking configuration in advance, PHASE automatically lowers the background music at runtime when the vocals play.