SCRecorder icon indicating copy to clipboard operation
SCRecorder copied to clipboard

Audio not recorded occasionally

Open jamesfzhang opened this issue 8 years ago • 3 comments

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!

jamesfzhang avatar Nov 30 '16 23:11 jamesfzhang

try -[SCRecorder unprepare] instead of just -[SCRecorder stopRunning] the AVCaptureSession after receiving UIApplicationWillResignActiveNotification ?

mysteriouss avatar Dec 14 '16 10:12 mysteriouss

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

rordeix avatar Jan 30 '17 15:01 rordeix

I had the same issue. I am using swift 3. try to disable keepMirroringOnWrite if you have enabled it. recorder.keepMirroringOnWrite = false

moosebay avatar Jan 31 '17 02:01 moosebay