Documentation Archive Developer
Search

MediaToolbox Changes for Objective-C

MediaToolbox

MTAudioProcessingTap.h

Modified MTAudioProcessingTapCreate()
Declaration
From
OSStatus MTAudioProcessingTapCreate (
    CFAllocatorRef allocator,
    const MTAudioProcessingTapCallbacks *callbacks,
    MTAudioProcessingTapCreationFlags flags,
    MTAudioProcessingTapRef *tapOut
);
To
OSStatus MTAudioProcessingTapCreate (
    CFAllocatorRef _Nullable allocator,
    const MTAudioProcessingTapCallbacks * _Nonnull callbacks,
    MTAudioProcessingTapCreationFlags flags,
    MTAudioProcessingTapRef  _Nullable * _Nonnull tapOut
);

Modified MTAudioProcessingTapGetSourceAudio()
Declaration
From
OSStatus MTAudioProcessingTapGetSourceAudio (
    MTAudioProcessingTapRef tap,
    CMItemCount numberFrames,
    AudioBufferList *bufferListInOut,
    MTAudioProcessingTapFlags *flagsOut,
    CMTimeRange *timeRangeOut,
    CMItemCount *numberFramesOut
);
To
OSStatus MTAudioProcessingTapGetSourceAudio (
    MTAudioProcessingTapRef _Nonnull tap,
    CMItemCount numberFrames,
    AudioBufferList * _Nonnull bufferListInOut,
    MTAudioProcessingTapFlags * _Nullable flagsOut,
    CMTimeRange * _Nullable timeRangeOut,
    CMItemCount * _Nullable numberFramesOut
);

Modified MTAudioProcessingTapGetStorage()
Declaration
From
void * MTAudioProcessingTapGetStorage (
    MTAudioProcessingTapRef tap
);
To
void * _Nonnull MTAudioProcessingTapGetStorage (
    MTAudioProcessingTapRef _Nonnull tap
);

MTFormatNames.h (Added)

Added MTCopyLocalizedNameForMediaSubType()
Added MTCopyLocalizedNameForMediaType()
Added #def MTFORMATNAME_H