SCRecorder
SCRecorder copied to clipboard
Audio not recorded occasionally
Has anyone experienced audio not getting recorded every once in a while? I can't seem to reproduce this error consistently. I am doing a few things with AVAudioSession
to enable background audio, but again the inconsistency in which no audio gets recorded is baffling.
I'm using AVAudioSessionCategoryPlayAndRecord
with [.mixWithOthers, .defaultToSpeaker]
options. Thanks!
try -[SCRecorder unprepare] instead of just -[SCRecorder stopRunning] the AVCaptureSession after receiving UIApplicationWillResignActiveNotification ?
It happened to me, some time ago, I did set fastRecordMethodEnabled = true
, and while recording, if you got quiet for while at the start, then no sound was recorded at all. If you start talking or making sounds at the start of the recording then it worked just fine.
Make sure you are not setting it to true
I had the same issue. I am using swift 3. try to disable keepMirroringOnWrite if you have enabled it. recorder.keepMirroringOnWrite = false