Open IgorMuzyka opened 8 years ago
looking for help on this too!
me too!
The problem can be because of the device (whether it support lpcm or not) try changing the method to - (void)setClientFormat:(AudioStreamBasicDescription)clientFormat { if(![FGAudioUtilities checkResult:ExtAudioFileSetProperty(self.info->extAudioFileRef, kExtAudioFileProperty_ClientDataFormat, sizeof(clientFormat), &clientFormat) operation:"Failed to set client format on recorded audio file"]) { clientFormat.mFormatID = kAudioFileM4AType; } self.info->clientFormat = clientFormat;
}
Okay so my problem is that i have some really old code which writes audio from mic and which i kind of not willing or cannot just go and change cause it's a bit spaghetti. The code failed on iPhone6s/6s+ so i made a bad spike with check and passed it another AVAudioFormat which helped. And here is the code:
And then i kinda chop the files in parts with AVAudioSession and use those files. And then i'm doing thing like:
And eventually it all worked but started to fail with:
Error: Failed to read audio data from file waveform (-50)
while trying to:May anyone help me?