Since NetEq4 is ready to handle 48 kHz codec, it is good to remove the 48-to-32kHz downsampling of Opus output. This facilitates webrtc to make full use of Opus's bandwidth and eliminates unneeded computation in resampling.
TEST=passed_all_trybots R=henrik.lundin@webrtc.org, tina.legrand@webrtc.org Review URL: https://webrtc-codereview.appspot.com/16619005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6458 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -1616,14 +1616,8 @@ int AudioCodingModuleImpl::ReceiveFrequency() const {
|
||||
|
||||
int codec_id = receiver_.last_audio_codec_id();
|
||||
|
||||
int sample_rate_hz;
|
||||
if (codec_id < 0)
|
||||
sample_rate_hz = receiver_.current_sample_rate_hz();
|
||||
else
|
||||
sample_rate_hz = ACMCodecDB::database_[codec_id].plfreq;
|
||||
|
||||
// TODO(tlegrand): Remove this option when we have full 48 kHz support.
|
||||
return (sample_rate_hz > 32000) ? 32000 : sample_rate_hz;
|
||||
return codec_id < 0 ? receiver_.current_sample_rate_hz() :
|
||||
ACMCodecDB::database_[codec_id].plfreq;
|
||||
}
|
||||
|
||||
// Get current playout frequency.
|
||||
|
||||
Reference in New Issue
Block a user