Documentation Archive Developer
Search

MediaToolbox Changes

MediaToolbox

Added MTAudioProcessingTapCallbacks.init()
Added MTAudioProcessingTapCallbacks.init(version: Int32, clientInfo: UnsafeMutablePointer<Void>, init: MTAudioProcessingTapInitCallback, finalize: MTAudioProcessingTapFinalizeCallback, prepare: MTAudioProcessingTapPrepareCallback, unprepare: MTAudioProcessingTapUnprepareCallback, process: MTAudioProcessingTapProcessCallback)
Modified MTAudioProcessingTapCallbacks [struct]
Declaration
From
struct MTAudioProcessingTapCallbacks {
    var version: Int32
    var clientInfo: UnsafePointer<()>
    var `init`: MTAudioProcessingTapInitCallback
    var finalize: MTAudioProcessingTapFinalizeCallback
    var prepare: MTAudioProcessingTapPrepareCallback
    var unprepare: MTAudioProcessingTapUnprepareCallback
    var process: MTAudioProcessingTapProcessCallback
}
To
struct MTAudioProcessingTapCallbacks {
    var version: Int32
    var clientInfo: UnsafeMutablePointer<Void>
    var `init`: MTAudioProcessingTapInitCallback
    var finalize: MTAudioProcessingTapFinalizeCallback
    var prepare: MTAudioProcessingTapPrepareCallback
    var unprepare: MTAudioProcessingTapUnprepareCallback
    var process: MTAudioProcessingTapProcessCallback
    init()
    init(version version: Int32, clientInfo clientInfo: UnsafeMutablePointer<Void>, `init` `init`: MTAudioProcessingTapInitCallback, finalize finalize: MTAudioProcessingTapFinalizeCallback, prepare prepare: MTAudioProcessingTapPrepareCallback, unprepare unprepare: MTAudioProcessingTapUnprepareCallback, process process: MTAudioProcessingTapProcessCallback)
}

Modified MTAudioProcessingTapCallbacks.clientInfo
Declaration
From
var clientInfo: UnsafePointer<()>
To
var clientInfo: UnsafeMutablePointer<Void>

Modified MTAudioProcessingTapCreate(CFAllocator!, UnsafePointer<MTAudioProcessingTapCallbacks>, MTAudioProcessingTapCreationFlags, UnsafeMutablePointer<Unmanaged<MTAudioProcessingTap>?>) -> OSStatus
DeclarationIntroduction
From
func MTAudioProcessingTapCreate(_ allocator: CFAllocator!, _ callbacks: ConstUnsafePointer<MTAudioProcessingTapCallbacks>, _ flags: MTAudioProcessingTapCreationFlags, _ tapOut: UnsafePointer<Unmanaged<MTAudioProcessingTap>?>) -> OSStatus
OS X 10.10
To
func MTAudioProcessingTapCreate(_ allocator: CFAllocator!, _ callbacks: UnsafePointer<MTAudioProcessingTapCallbacks>, _ flags: MTAudioProcessingTapCreationFlags, _ tapOut: UnsafeMutablePointer<Unmanaged<MTAudioProcessingTap>?>) -> OSStatus
OS X 10.9

Modified MTAudioProcessingTapGetSourceAudio(MTAudioProcessingTap!, CMItemCount, UnsafeMutablePointer<AudioBufferList>, UnsafeMutablePointer<MTAudioProcessingTapFlags>, UnsafeMutablePointer<CMTimeRange>, UnsafeMutablePointer<CMItemCount>) -> OSStatus
DeclarationIntroduction
From
func MTAudioProcessingTapGetSourceAudio(_ tap: MTAudioProcessingTap!, _ numberFrames: CMItemCount, _ bufferListInOut: UnsafePointer<AudioBufferList>, _ flagsOut: UnsafePointer<MTAudioProcessingTapFlags>, _ timeRangeOut: UnsafePointer<CMTimeRange>, _ numberFramesOut: UnsafePointer<CMItemCount>) -> OSStatus
OS X 10.10
To
func MTAudioProcessingTapGetSourceAudio(_ tap: MTAudioProcessingTap!, _ numberFrames: CMItemCount, _ bufferListInOut: UnsafeMutablePointer<AudioBufferList>, _ flagsOut: UnsafeMutablePointer<MTAudioProcessingTapFlags>, _ timeRangeOut: UnsafeMutablePointer<CMTimeRange>, _ numberFramesOut: UnsafeMutablePointer<CMItemCount>) -> OSStatus
OS X 10.9

Modified MTAudioProcessingTapGetStorage(MTAudioProcessingTap!) -> UnsafeMutablePointer<Void>
DeclarationIntroduction
From
func MTAudioProcessingTapGetStorage(_ tap: MTAudioProcessingTap!) -> UnsafePointer<()>
OS X 10.10
To
func MTAudioProcessingTapGetStorage(_ tap: MTAudioProcessingTap!) -> UnsafeMutablePointer<Void>
OS X 10.9

Modified MTAudioProcessingTapGetTypeID() -> CFTypeID
Introduction
FromOS X 10.10
ToOS X 10.9

Modified MTAudioProcessingTapInitCallback
Declaration
From
typealias MTAudioProcessingTapInitCallback = CFunctionPointer<((MTAudioProcessingTap!, UnsafePointer<()>, UnsafePointer<UnsafePointer<()>>) -> Void)>
To
typealias MTAudioProcessingTapInitCallback = CFunctionPointer<((MTAudioProcessingTap!, UnsafeMutablePointer<Void>, UnsafeMutablePointer<UnsafeMutablePointer<Void>>) -> Void)>

Modified MTAudioProcessingTapPrepareCallback
Declaration
From
typealias MTAudioProcessingTapPrepareCallback = CFunctionPointer<((MTAudioProcessingTap!, CMItemCount, ConstUnsafePointer<AudioStreamBasicDescription>) -> Void)>
To
typealias MTAudioProcessingTapPrepareCallback = CFunctionPointer<((MTAudioProcessingTap!, CMItemCount, UnsafePointer<AudioStreamBasicDescription>) -> Void)>

Modified MTAudioProcessingTapProcessCallback
Declaration
From
typealias MTAudioProcessingTapProcessCallback = CFunctionPointer<((MTAudioProcessingTap!, CMItemCount, MTAudioProcessingTapFlags, UnsafePointer<AudioBufferList>, UnsafePointer<CMItemCount>, UnsafePointer<MTAudioProcessingTapFlags>) -> Void)>
To
typealias MTAudioProcessingTapProcessCallback = CFunctionPointer<((MTAudioProcessingTap!, CMItemCount, MTAudioProcessingTapFlags, UnsafeMutablePointer<AudioBufferList>, UnsafeMutablePointer<CMItemCount>, UnsafeMutablePointer<MTAudioProcessingTapFlags>) -> Void)>