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.94k
stars
821
forks
source link
Error in Console: "Failed to write audio data to recorded audio file (-38)" #343
Hi,
I received some error when I trying to use the recorder feature of EZAudio in my app. It says "Error: Failed to write audio data to recorded audio file (-38)", then I put a try-catch clause to see what the real problem is. But it never works, the app just crashes. It is hard to replicate the error because it happens very random but it will happen somehow. My app only requires few seconds of recording so I don't know if the memory will be an issue.
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
Hi, I received some error when I trying to use the recorder feature of EZAudio in my app. It says
"Error: Failed to write audio data to recorded audio file (-38)"
, then I put atry-catch
clause to see what the real problem is. But it never works, the app just crashes. It is hard to replicate the error because it happens very random but it will happen somehow. My app only requires few seconds of recording so I don't know if the memory will be an issue.Here's the code for the recorder:
That
[self aubiopitch]
is a process to analysis the just-saved wav file.