Platforms to show: All Mac Windows Linux Cross-Platform
Back to AVAssetReaderAudioMixOutputMBS class.
AVAssetReaderAudioMixOutputMBS.assetReaderAudioMixOutputWithAudioTracks(audioTracks() as AVAssetTrackMBS, outputSettings as dictionary) as AVAssetReaderAudioMixOutputMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
audioTracks: An array of AVAssetTrack objects from which the created object should read sample buffers to be mixed.
Each track must be one of the tracks owned by the target AVAssetReader object's asset and must be of media type AVMediaTypeAudio.
audioSettings: The audio settings to be used for audio output; the dictionary must contain values for keys in AVAudioSettings.h (linear PCM only). Pass nil if you want to receive decoded samples in a convenient uncompressed format, with properties determined according to the properties of the specified audio tracks.
Returns an instance of AVAssetReaderAudioMixOutput for reading mixed audio from audioTracks, with audio settings specified by audioSettings.
Initialization will fail if audioSettings cannot be used with audioTracks.
Some examples using this method:
The items on this page are in the following plugins: MBS AVFoundation Plugin.