I'm trying to build a dB Measurement to unlock a feature within an app. The Feature should become available once the user reaches 100dB. My current implementation is only able to measure up to 96dB. From what I understand the Problem is somehow related to the bitrate recording: 16bit are only capable of 96dB, 24bit should be capable of 144dB (http://www.head-fi.org/t/415361/24bit-vs-16bit-the-myth-exploded).
The dB Measurement and Calculations work fine, my only issue is that I can not measure more than 96dB. I'm struggeling with the settings to achieve a higher bit rate, I guess I'm doing something wrong here.
My current initialisation of the recorder looks like this:
NSDictionary *settings = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithFloat: 44100.0], AVSampleRateKey,
[NSNumber numberWithInt: kAudioFormatAppleIMA4], AVFormatIDKey,
[NSNumber numberWithInt: 1], AVNumberOfChannelsKey,
//[NSNumber numberWithInt: 24], AVEncoderBitRateKey,
[NSNumber numberWithInt:24],AVLinearPCMBitDepthKey,
[NSNumber numberWithBool:NO],AVLinearPCMIsBigEndianKey,
[NSNumber numberWithBool:NO],AVLinearPCMIsFloatKey,
[NSNumber numberWithInt: AVAudioQualityMax], AVEncoderAudioQualityKey,
nil];
NSError *error;
recorder = [[AVAudioRecorder alloc] initWithURL:outputFileURL settings:settings error:&error];
Thank you in advance.