Hi,
(AVAudioRecorder *_recorder;)
[_recorder recordForDuration:duration];
Returns error -50. But I can't find what error -50 is.
I'm using a temporary folder to save the recorded audio. Was wondering if it's something to do about the temporary folder (Sandboxing permissions etc).
NSURL *url = [[NSURL alloc] initFileURLWithPath:@"/etexttemp"];
recAudioFolder = [[NSFileManager defaultManager] URLForDirectory:NSItemReplacementDirectory
inDomain:NSUserDomainMask
appropriateForURL:url
create:YES
error:&error];
I'm updating the code from 10.7 to 10.11. It works OK on 10.7. Any help appreciated. Thanks
Paul