AudioKit

@objc open class AudioKit: NSObject

Top level AudioKit managing class

  • Format of AudioKit Nodes

    Declaration

    Swift

    open static var format = AKSettings.audioFormat
  • Reference to the AV Audio Engine

    Declaration

    Swift

    open static let engine = AVAudioEngine()
  • An audio output operation that most applications will need to use last

    Declaration

    Swift

    open static var output: AKNode?
  • Enumerate the list of available input devices.

    Declaration

    Swift

    open static var availableInputs: [AKDevice]?
  • Enumerate the list of available output devices.

    Declaration

    Swift

    open static var availableOutputs: [AKDevice]?
  • The name of the current preferred input device, if available.

    Declaration

    Swift

    open static var inputDevice: AKDevice?
  • Change the preferred input device, giving it one of the names from the list of available inputs.

    Declaration

    Swift

    open static func setInputDevice(_ input: AKDevice) throws
  • Change the preferred output device, giving it one of the names from the list of available output.

    Declaration

    Swift

    open static func setOutputDevice(_ output: AKDevice) throws
  • Start up the audio engine

    Declaration

    Swift

    open static func start()
  • Stop the audio engine

    Declaration

    Swift

    open static func stop()
  • Testing AKNode

    Declaration

    Swift

    open static var tester: AKTester?
  • Test the output of a given node

    • Parameters:
      • node: AKNode to test
      • duration: Number of seconds to test (accurate to the sample)

    Declaration

    Swift

    open static func test(node: AKNode, duration: Double)

    Parameters

    node

    AKNode to test

    duration

    Number of seconds to test (accurate to the sample)

  • Audition the test to hear what it sounds like

    • Parameters:
      • node: AKNode to test
      • duration: Number of seconds to test (accurate to the sample)

    Declaration

    Swift

    open static func auditionTest(node: AKNode, duration: Double)

    Parameters

    node

    AKNode to test

    duration

    Number of seconds to test (accurate to the sample)