AKNodeRecorder

@objc open class AKNodeRecorder: NSObject

Simple audio recorder class

  • True if we are recording.

    Declaration

    Swift

    public private(set) dynamic var isRecording = false
  • An optional duration for the recording to auto-stop when reached

    Declaration

    Swift

    open var durationToRecord: Double = 0
  • 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