EZAudio icon indicating copy to clipboard operation
EZAudio copied to clipboard

Error: Failed to create audio file ('fmt?')

Open davidwadge opened this issue 10 years ago • 6 comments

Changing the file type to EZRecorderFileTypeWAV causes:

Error: Failed to create audio file ('fmt?')

I'm using Xcode 7.1.1 testing through the simulator on iOS9. This is replicable in the EZAudioRecordExample, and yet works fine for other file types.

Any ideas what's causing this? It seems to be related to iOS9 as it worked without issues in iOS8.

davidwadge avatar Nov 21 '15 12:11 davidwadge

Hi,

I have the same problem. I use Xcode 7.1 On the simulator or the device the app crashes when I try to record a wav file.

Just try changing the file format from EZRecorderFileTypeM4A to EZRecorderFileTypeWAV in the EZAudioRecordExample project.

Pierre-Loup avatar Dec 09 '15 08:12 Pierre-Loup

same problem

LiweiDong avatar Dec 16 '15 08:12 LiweiDong

Just ran into this as well. Any updates?

nick-thompson avatar Jun 08 '16 19:06 nick-thompson

Did you try the commit listed above by thuydx55?

dxclancy avatar Jun 09 '16 18:06 dxclancy

same problem

hansonboy avatar Apr 17 '17 14:04 hansonboy

find the solution to the problem at the site: http://stackoverflow.com/questions/27791605/ezaudio-framework-error-couldnt-initialize-output-unit-fmt.

case EZRecorderFileTypeWAV: asbd = [EZAudioUtilities stereoFloatInterleavedFormatWithSampleRate:sourceFormat.mSampleRate];

update the absd as the site.

hansonboy avatar Apr 18 '17 08:04 hansonboy