ios - Error: Failed to set client format on recorded audio file (-66563) - EZRecorder / EZAudio -


i'm working on app uses ezaudio audio data microphone send on wifi, records received audio data on 2nd device. works great when tried use ezrecorder example file, error: "error: failed set client format on recorded audio file (-66563)". should mention original example code works without issue on own error when move code project.

any appreciated.

here's piece of code causes this:

-(void)togglerecording:(id)sender {     if (rectest==0)     {         [recbutton setimage:[uiimage imagenamed:@"rec2.png"] forstate:uicontrolstatenormal];         rectest=1;     }     else if (rectest==1)     {         [recbutton setimage:[uiimage imagenamed:@"rec.png"] forstate:uicontrolstatenormal];         rectest=0;     }      self.playingtextfield.text = @"not playing";     if(self.audioplayer)     {         if(self.audioplayer.playing)         {             [self.audioplayer stop];         }         self.audioplayer = nil;     }      if(rectest==1)     {         //create recorder         self.recorder = [ezrecorder recorderwithdestinationurl:[self testfilepathurl]                                                   sourceformat:self.microphone.audiostreambasicdescription                                            destinationfiletype:ezrecorderfiletypem4a];           self.isrecording = no;     }     else     {         [self.recorder closeaudiofile];         self.isrecording = yes;     }     self.recordingtextfield.text = self.isrecording ? @"recording" : @"not recording"; } 

make sure initialized microphone with:

self.microphone = [ezmicrophone microphonewithdelegate:self]; 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -