An object that represents the parameters that you apply when adding an audio track to a mix.


@interface AVAudioMixInputParameters : NSObject


You use an instance AVAudioMixInputParameters to apply audio volume ramps for an input to an audio mix. Mix parameters are associated with audio tracks via the trackID property.

Audio volume is currently supported as a time-varying parameter. AVAudioMixInputParameters has a mutable subclass, AVMutableAudioMixInputParameters.

Before the first time at which a volume is set, a volume of 1.0 used; after the last time for which a volume has been set, the last volume is used. Within the time range of a volume ramp, the volume is interpolated between the start volume and end volume of the ramp. For example, setting the volume to 1.0 at time 0 and also setting a volume ramp from a volume of 0.5 to 0.2 with a timeRange of [4.0, 5.0] results in an audio volume parameters that hold the volume constant at 1.0 from 0.0 sec to 4.0 sec, then cause it to jump to 0.5 and descend to 0.2 from 4.0 sec to 9.0 sec, holding constant at 0.2 thereafter.

Given that this is an immutable variant of the object, you should not allocate and initialize a version of this class yourself. Other classes may return instances of this class.


Getting the Track ID


The identifier of the audio track to which the parameters should be applied.

Getting Volume Ramps

- getVolumeRampForTime:startVolume:endVolume:timeRange:

Retrieves the volume ramp that includes the specified time.

Getting an Audio Tap


The audio processing tap associated with the track.

Getting the Time Pitch Algorithm Setting


The processing algorithm used to manage audio pitch for scaled audio edits.


An algorithm used to set the audio pitch as the rate changes.


Inherits From

See Also

Audio Mixing


An object that manages the input parameters for mixing audio tracks.


An object that manages the input parameters for mixing audio tracks.


The parameters you use when adding an audio track to a mix.