setVolumeRamp(fromStartVolume:toEndVolume:timeRange:)
Sets a volume ramp to apply during a specified time range.
Declaration
func setVolumeRamp(fromStartVolume startVolume: Float, toEndVolume endVolume: Float, timeRange: CMTimeRange)Parameters
- startVolume:
The starting volume. The value must be between
0.0and 1.0. - endVolume:
The end volume. The value must be between
0.0and1.0. - timeRange:
The time range over which to apply the ramp.