Remove 44.1 kHz workaround from the iOS AudioDevice.
Long, long ago, webrtc didn't support audio at 44.1 kHz. As a result we treated 44.1 kHz audio as 44 kHz. We now have an arbitrary rate resampler and have no trouble supporting 44.1 (see 1395 for all the details). I must have missed updating iOS at the time. This shouldn't result in a visible change as 16 kHz is selected as the preferred hardware rate. BUG=1395 R=fischman@webrtc.org, henrikg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/10949004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5957 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
20c71fd1dc
commit
d59359af4d
@ -1299,7 +1299,7 @@ int32_t AudioDeviceIPhone::InitPlayOrRecord() {
|
|||||||
// todo: Add 48 kHz (increase buffer sizes). Other fs?
|
// todo: Add 48 kHz (increase buffer sizes). Other fs?
|
||||||
if ((playoutDesc.mSampleRate > 44090.0)
|
if ((playoutDesc.mSampleRate > 44090.0)
|
||||||
&& (playoutDesc.mSampleRate < 44110.0)) {
|
&& (playoutDesc.mSampleRate < 44110.0)) {
|
||||||
_adbSampFreq = 44000;
|
_adbSampFreq = 44100;
|
||||||
} else if ((playoutDesc.mSampleRate > 15990.0)
|
} else if ((playoutDesc.mSampleRate > 15990.0)
|
||||||
&& (playoutDesc.mSampleRate < 16010.0)) {
|
&& (playoutDesc.mSampleRate < 16010.0)) {
|
||||||
_adbSampFreq = 16000;
|
_adbSampFreq = 16000;
|
||||||
@ -1730,7 +1730,7 @@ void AudioDeviceIPhone::UpdatePlayoutDelay() {
|
|||||||
_playoutDelayMeasurementCounter = 0;
|
_playoutDelayMeasurementCounter = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo: Add playout buffer? (Only used for 44.1 kHz)
|
// todo: Add playout buffer?
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioDeviceIPhone::UpdateRecordingDelay() {
|
void AudioDeviceIPhone::UpdateRecordingDelay() {
|
||||||
|
Loading…
Reference in New Issue
Block a user