Other Typealiases

The following typealiases are available globally.

  • A Sample type, just a UInt32

    Declaration

    Swift

    public typealias Sample = UInt32
  • Callback function that can be called from C

    Declaration

    Swift

    public typealias AKCCallback = @convention(block) () -> Void
  • Temporary hack for Xcode 7.3.1 - Appreciate improvements to this if you want to make a go of it!

    Declaration

    Swift

    typealias AKRawMIDIPacket = (
  • typealias for AKAudioFile Async Process Completion Handler

    If processedFile != nil, process succeeded (then error is nil) If processedFile == nil, process failed, error is the process thrown error

    Declaration

    Swift

    public typealias AsyncProcessCallback = (_ processedFile: AKAudioFile?, _ error: NSError?) -> Void
  • Function type for MIDI callbacks

    Declaration

    Swift

    public typealias AKMIDICallback = (AKMIDIStatus, MIDINoteNumber, MIDIVelocity) -> Void