Documentation Archive Developer
Search

AudioToolbox Changes for Objective-C

AudioToolbox

AudioConverter.h

Added #def AudioToolbox_AudioConverter_h

AudioFile.h

Declaration
From
OSStatus AudioFileCreateWithURL (
    CFURLRef inFileRef,
    AudioFileTypeID inFileType,
    const AudioStreamBasicDescription *inFormat,
    UInt32 inFlags,
    AudioFileID *outAudioFile
);
To
OSStatus AudioFileCreateWithURL (
    CFURLRef _Nonnull inFileRef,
    AudioFileTypeID inFileType,
    const AudioStreamBasicDescription * _Nonnull inFormat,
    AudioFileFlags inFlags,
    AudioFileID  _Nullable * _Nonnull outAudioFile
);

Declaration
From
OSStatus AudioFileInitializeWithCallbacks (
    void *inClientData,
    AudioFile_ReadProc inReadFunc,
    AudioFile_WriteProc inWriteFunc,
    AudioFile_GetSizeProc inGetSizeFunc,
    AudioFile_SetSizeProc inSetSizeFunc,
    AudioFileTypeID inFileType,
    const AudioStreamBasicDescription *inFormat,
    UInt32 inFlags,
    AudioFileID *outAudioFile
);
To
OSStatus AudioFileInitializeWithCallbacks (
    void * _Nonnull inClientData,
    AudioFile_ReadProc _Nonnull inReadFunc,
    AudioFile_WriteProc _Nonnull inWriteFunc,
    AudioFile_GetSizeProc _Nonnull inGetSizeFunc,
    AudioFile_SetSizeProc _Nonnull inSetSizeFunc,
    AudioFileTypeID inFileType,
    const AudioStreamBasicDescription * _Nonnull inFormat,
    AudioFileFlags inFlags,
    AudioFileID  _Nullable * _Nonnull outAudioFile
);

Declaration
From
OSStatus AudioFileOpenURL (
    CFURLRef inFileRef,
    SInt8 inPermissions,
    AudioFileTypeID inFileTypeHint,
    AudioFileID *outAudioFile
);
To
OSStatus AudioFileOpenURL (
    CFURLRef _Nonnull inFileRef,
    AudioFilePermissions inPermissions,
    AudioFileTypeID inFileTypeHint,
    AudioFileID  _Nullable * _Nonnull outAudioFile
);

AudioFileStream.h

Added #def AudioToolbox_AudioFileStream_h
Declaration
From
OSStatus AudioFileStreamParseBytes (
    AudioFileStreamID inAudioFileStream,
    UInt32 inDataByteSize,
    const void *inData,
    UInt32 inFlags
);
To
OSStatus AudioFileStreamParseBytes (
    AudioFileStreamID _Nonnull inAudioFileStream,
    UInt32 inDataByteSize,
    const void * _Nonnull inData,
    AudioFileStreamParseFlags inFlags
);

Declaration
From
OSStatus AudioFileStreamSeek (
    AudioFileStreamID inAudioFileStream,
    SInt64 inPacketOffset,
    SInt64 *outDataByteOffset,
    UInt32 *ioFlags
);
To
OSStatus AudioFileStreamSeek (
    AudioFileStreamID _Nonnull inAudioFileStream,
    SInt64 inPacketOffset,
    SInt64 * _Nonnull outDataByteOffset,
    AudioFileStreamSeekFlags * _Nonnull ioFlags
);

AudioFormat.h

Added #def AudioToolbox_AudioFormat_h

AudioQueue.h

Added #def AudioToolbox_AudioQueue_h
Declaration
From
OSStatus AudioQueueProcessingTapGetSourceAudio (
    AudioQueueProcessingTapRef inAQTap,
    UInt32 inNumberFrames,
    AudioTimeStamp *ioTimeStamp,
    UInt32 *outFlags,
    UInt32 *outNumberFrames,
    AudioBufferList *ioData
);
To
OSStatus AudioQueueProcessingTapGetSourceAudio (
    AudioQueueProcessingTapRef _Nonnull inAQTap,
    UInt32 inNumberFrames,
    AudioTimeStamp * _Nonnull ioTimeStamp,
    AudioQueueProcessingTapFlags * _Nonnull outFlags,
    UInt32 * _Nonnull outNumberFrames,
    AudioBufferList * _Nonnull ioData
);

Declaration
From
OSStatus AudioQueueProcessingTapNew (
    AudioQueueRef inAQ,
    AudioQueueProcessingTapCallback inCallback,
    void *inClientData,
    UInt32 inFlags,
    UInt32 *outMaxFrames,
    AudioStreamBasicDescription *outProcessingFormat,
    AudioQueueProcessingTapRef *outAQTap
);
To
OSStatus AudioQueueProcessingTapNew (
    AudioQueueRef _Nonnull inAQ,
    AudioQueueProcessingTapCallback _Nonnull inCallback,
    void * _Nullable inClientData,
    AudioQueueProcessingTapFlags inFlags,
    UInt32 * _Nonnull outMaxFrames,
    AudioStreamBasicDescription * _Nonnull outProcessingFormat,
    AudioQueueProcessingTapRef  _Nullable * _Nonnull outAQTap
);

AudioServices.h

AudioToolbox.h

Added #def AudioToolbox_AudioToolbox_h

AUGraph.h

Added #def AudioToolbox_AUGraph_h

CAFFile.h

Added #def AudioToolbox_CAFFile_h

ExtendedAudioFile.h

Added #def AudioToolbox_ExtendedAudioFile_h

MusicPlayer.h