Instance Method

setVolume:atTime:

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

Declaration

- (void)setVolume:(float)volume atTime:(CMTime)time;

Parameters

volume

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

time

The start time at which to set the volume.

Discussion

This method adds a volume ramp starting at time. This volume setting remains in effect until the end of the track unless you set a different volume level to start at a later time.

See Also

Setting the Volume

- setVolumeRampFromStartVolume:toEndVolume:timeRange:

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