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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Simeryn opened this issue · comments

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.

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

@Simeryn have you got the solution for same

commented

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