Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / voice_engine / voe_codec_impl.cc
index 5099407..6f470be 100644 (file)
@@ -418,10 +418,10 @@ int VoECodecImpl::GetVADStatus(int channel, bool& enabled, VadModes& mode,
     return 0;
 }
 
-int VoECodecImpl::SetOpusMaxBandwidth(int channel, int bandwidth_hz) {
+int VoECodecImpl::SetOpusMaxPlaybackRate(int channel, int frequency_hz) {
   WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
-               "SetOpusMaxBandwidth(channel=%d, bandwidth_hz=%d)", channel,
-               bandwidth_hz);
+               "SetOpusMaxPlaybackRate(channel=%d, frequency_hz=%d)", channel,
+               frequency_hz);
   if (!_shared->statistics().Initialized()) {
     _shared->SetLastError(VE_NOT_INITED, kTraceError);
     return -1;
@@ -430,10 +430,10 @@ int VoECodecImpl::SetOpusMaxBandwidth(int channel, int bandwidth_hz) {
   voe::Channel* channelPtr = ch.channel();
   if (channelPtr == NULL) {
     _shared->SetLastError(VE_CHANNEL_NOT_VALID, kTraceError,
-                          "SetOpusMaxBandwidth failed to locate channel");
+                          "SetOpusMaxPlaybackRate failed to locate channel");
     return -1;
   }
-  return channelPtr->SetOpusMaxBandwidth(bandwidth_hz);
+  return channelPtr->SetOpusMaxPlaybackRate(frequency_hz);
 }
 
 void VoECodecImpl::ACMToExternalCodecRepresentation(CodecInst& toInst,