add safari support, ramp up and down gain for smooth muting/unmuting