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 = (
  • A closure that will be called when the clip is finished recording. If successful URL will be non-nil. If recording failed, Error will be non nil. The actual start time is included and should be checked in case it was adjusted.

    Declaration

    Swift

    public typealias AKRecordingResult = (URL?, Double, Error?) -> Void
  • Function type for MIDI callbacks

    Declaration

    Swift

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