Ios7 AVAudioRecorder不遵守AVLinearPCBMBITDepthkey设置

Ios7 AVAudioRecorder不遵守AVLinearPCBMBITDepthkey设置,ios7,ios8,xcode6,avaudiorecorder,Ios7,Ios8,Xcode6,Avaudiorecorder,我正在我的应用程序中使用AVAudioRecorder。配置如下所示: .... AVAudioRecorder *internalRecorder = [[AVAudioRecorder alloc] initWithURL:url settings:[self recordSettings] error:&error]; .... - (NSDictionary *)recordSettings __attribute__((const)) { return @{AVFor

我正在我的应用程序中使用AVAudioRecorder。配置如下所示:

....
AVAudioRecorder *internalRecorder = [[AVAudioRecorder alloc] initWithURL:url settings:[self recordSettings] error:&error];
....

- (NSDictionary *)recordSettings __attribute__((const)) {
    return @{AVFormatIDKey: @(kAudioFormatAppleLossless),
             AVSampleRateKey: @(44100.0),
             AVLinearPCMBitDepthKey: @(16),
             AVLinearPCMIsBigEndianKey: @NO,
             AVLinearPCMIsFloatKey: @NO};
}
在iOS 7上录制的音频为16位,但在iOS 8上录制的音频为32位。这是iOS 8中的一个bug吗?我同时使用Xcode 5和Xcode 6-这个问题与Xcode版本无关

提前谢谢。

类似问题: