AKNodeRecorder

@objc open class AKNodeRecorder: NSObject

Simple audio recorder class

  • Undocumented

    Declaration

    Swift

    @objc open class AKNodeRecorder: NSObject
  • True if we are recording.

    Declaration

    Swift

    open var isRecording: Bool
  • Duration of recording

    Declaration

    Swift

    open var recordedDuration: Double
  • return the AKAudioFile for reading

    Declaration

    Swift

    open var audioFile: AKAudioFile?
  • Initialize the node recorder

    Recording buffer size is defaulted to be AKSettings.bufferLength You can set a different value by setting an AKSettings.recordingBufferLength

    • Parameters:
      • node: Node to record from
      • file: Audio file to record to

    Declaration

    Swift

    public init(node: AKNode = AudioKit.output!,
                    file: AKAudioFile? = nil) throws

    Parameters

    node

    Node to record from

    file

    Audio file to record to

  • Start recording

    Declaration

    Swift

    open func record() throws
  • Stop recording

    Declaration

    Swift

    open func stop()
  • Reset the AKAudioFile to clear previous recordings

    Declaration

    Swift

    open func reset() throws