syedhali / EZAudio

An iOS and macOS audio visualization framework built upon Core Audio useful for anyone doing real-time, low-latency audio processing and visualizations.
Other
4.93k stars 821 forks source link

Failed to write audio data to recorded audio file (-66560) #363

Open Simeryn opened 6 years ago

Simeryn commented 6 years ago

I am trying to use the app for recording voice of caller when a call is made. But after the call ends the app crashes and I get this error. Also, the file becomes corrupted. Could you please help in knowing what the error indicates and how can this be fixed. Thank you.

glm4 commented 6 years ago

For me, the problem was causing by appending buffer to the recorder after the closeFile(). Check out the example, they use an isRecording var to control this. Hope it helps

sunil28011 commented 6 years ago

@Simeryn have you got the solution for same

czjeep commented 6 years ago

@Simeryn I get the same problem, have you got the solution?

Simeryn commented 6 years ago

No, @sunil28011 @czjeep I didn't.