rpplusplus / iOSMp3Recorder

AVAudioRecorder + lame Mp3 EnCoder
191 stars 58 forks source link

Problem with MPEG4AAC audio format #3

Open gdg87 opened 9 years ago

gdg87 commented 9 years ago

Hi, if i record with audio format MPEG4AAC the encoding doesn't work. This is my recording settings dictionary

NSDictionary *recordSettings = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithInt:kAudioFormatMPEG4AAC], AVFormatIDKey, [NSNumber numberWithInt:AVAudioQualityLow], AVEncoderAudioQualityKey, [NSNumber numberWithInt: 1], AVNumberOfChannelsKey, [NSNumber numberWithFloat:22050.0f], AVSampleRateKey, nil];

I need this settings because only this work with iPad Air.