Mój kod działał dobrze do iOS 8 kAudioFormatMPEG4AAC
, ale teraz tworzy pusty plik. Nie zgłoszono błędów. Kiedy zmieniłem go na kAudioFormatLinearPCM
, to działa. To jest mój kod:AVAudioRecorder w iOS 8 nie obsługuje kAudioFormatMPEG4AAC
recordSettings = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:AVAudioQualityMin], AVEncoderAudioQualityKey,
[NSNumber numberWithInt: kAudioFormatLinearPCM], AVFormatIDKey,
[NSNumber numberWithInt:16], AVEncoderBitRateKey,
[NSNumber numberWithInt: 1], AVNumberOfChannelsKey,
[NSNumber numberWithFloat:32000.0], AVSampleRateKey,
nil];
Z kAudioFormatLinearPCM, mój AVAudioRecorder nie działa. –