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;
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,