Class

AVAssetReaderAudioMixOutput

AVAssetReaderAudioMixOutput is a concrete subclass of AVAssetReaderOutput that defines an interface for reading audio samples that result from mixing the audio from one or more tracks of an AVAssetReader object's asset.

Overview

You can read the audio data mixed from one or more asset tracks by adding an instance of AVAssetReaderAudioMixOutput to an asset reader using add(_:). The samples can be read in a default format or can be converted to a different format.

Topics

Creating an Audio Mix Output

init(audioTracks: [AVAssetTrack], audioSettings: [String : Any]?)

Initializes an instance of AVAssetReaderAudioMixOutput for reading mixed audio from the specified audio tracks, with optional audio settings.

Settings

var audioMix: AVAudioMix?

The output’s audio mix.

var audioSettings: [String : Any]?

The audio settings used for audio output.

var audioTracks: [AVAssetTrack]

The tracks from which the receiver reads mixed audio.

var audioTimePitchAlgorithm: AVAudioTimePitchAlgorithm

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

Relationships

Inherits From

Conforms To