Platforms to show: All Mac Windows Linux Cross-Platform
Back to AVAssetReaderAudioMixOutputMBS class.
AVAssetReaderAudioMixOutputMBS.audioSettings as dictionary
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The dictionary must contain values for keys in AVAudioSettings.h (linear PCM only).
nil indicates that the samples will be returned in the default format.
AVAssetReaderAudioMixOutputMBS.audioTracks as AVAssetTrackMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The value is an array of AVAssetTrack objects owned by the target AVAssetReader object's asset.
AVAssetReaderAudioMixOutputMBS.Constructor(audioTracks() as AVAssetTrackMBS, outputSettings as dictionary)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
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 initialized for reading mixed audio from audioTracks, with audio settings specified by audioSettings.
Initialization will fail if audioSettings cannot be used with audioTracks. So please check handle property.
The items on this page are in the following plugins: MBS AVFoundation Plugin.