fadeGain(gain:duration:curveType:)
Adjusts the volume of the sounds in a group gradually.
Declaration
func fadeGain(gain: Double, duration: Double, curveType: PHASECurveType)Parameters
- gain:
The target volume.
- duration:
The total time to complete the volume adjustment. The framework scales this value by Unitspersecond.
- curveType:
A selection that specifies a mathematical curve that shapes the volume adjustment over time.