Swift 3 LPCM Audio Recorder | Error: kAudioFileInvalidPacketOffsetError
问题 The below recorder works only the first time, if you tried recording a second time it gives the error 'kAudioFileInvalidPacketOffsetError' when trying to AudioFileWritePackets. Any idea why this is happening? Thank you in advance Repository located here Recorder import UIKit import CoreAudio import AudioToolbox class SpeechRecorder: NSObject { static let sharedInstance = SpeechRecorder() // MARK:- properties @objc enum Status: Int { case ready case busy case error } internal struct