Instance Method

setVolumeRampFromStartVolume:toEndVolume:timeRange:

Sets a volume ramp to apply during a specified time range.

Declaration

- (void)setVolumeRampFromStartVolume:(float)startVolume toEndVolume:(float)endVolume timeRange:(CMTimeRange)timeRange;

Parameters

startVolume

The starting volume. The value must be between 0.0 and 1.0.

endVolume

The end volume. The value must be between 0.0 and 1.0.

timeRange

The time range over which to apply the ramp.

See Also

Setting the Volume

- setVolume:atTime:

Sets the value of the audio volume starting at the specified time.