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

Error: Failed to set client format on recorded audio file ('hwiu') #359

Open harjotsingh007 opened 6 years ago

harjotsingh007 commented 6 years ago

I am recording an audio file but still the initializing the recorder giving me this error. Can you please look into this?

self.microphone = [EZMicrophone microphoneWithDelegate:self];
[self.microphone startFetchingAudio];
self.recorder1 = [EZRecorder recorderWithURL:[NSURL fileURLWithPath:outputFileURL1.path]
                                   clientFormat:[self.microphone audioStreamBasicDescription]
                                       fileType:EZRecorderFileTypeM4A delegate:self];

I have deleted the previous file also but still I am getting this error.