init(audioTracks:audioSettings:)
Creates an object that reads mixed audio from the specified audio tracks.
Declaration
init(audioTracks: [AVAssetTrack], audioSettings: [String : Any]?)Parameters
- audioTracks:
An array of track objects of type Audio from which to source the sample buffers to mix.
- audioSettings:
Optional audio settings to use for audio output. Pass
nilto receive the decoded samples in an uncompressed format. To determine the specific format, examine the value of the sample buffer’s Formatdescription property.For non-
nilaudio settings, the dictionary must contain values for the Linear Pcm Format Settings keys. The output doesn’t support the Avsamplerateconverteraudioqualitykey constant.