Delete unused Opus-specific methods of AudioCodingModule
Bug: None Change-Id: Ib191e4beadf85cd57e765bc52d305e274e50a473 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/148400 Reviewed-by: Minyue Li <minyue@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28815}
This commit is contained in:
@ -118,14 +118,6 @@ class AudioCodingModuleImpl final : public AudioCodingModule {
|
||||
|
||||
int GetNetworkStatistics(NetworkStatistics* statistics) override;
|
||||
|
||||
// If current send codec is Opus, informs it about the maximum playback rate
|
||||
// the receiver will render.
|
||||
int SetOpusMaxPlaybackRate(int frequency_hz) override;
|
||||
|
||||
int EnableOpusDtx() override;
|
||||
|
||||
int DisableOpusDtx() override;
|
||||
|
||||
int EnableNack(size_t max_nack_list_size) override;
|
||||
|
||||
void DisableNack() override;
|
||||
@ -710,32 +702,6 @@ int AudioCodingModuleImpl::RegisterVADCallback(ACMVADCallback* vad_callback) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Informs Opus encoder of the maximum playback rate the receiver will render.
|
||||
int AudioCodingModuleImpl::SetOpusMaxPlaybackRate(int frequency_hz) {
|
||||
rtc::CritScope lock(&acm_crit_sect_);
|
||||
if (!HaveValidEncoder("SetOpusMaxPlaybackRate")) {
|
||||
return -1;
|
||||
}
|
||||
encoder_stack_->SetMaxPlaybackRate(frequency_hz);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int AudioCodingModuleImpl::EnableOpusDtx() {
|
||||
rtc::CritScope lock(&acm_crit_sect_);
|
||||
if (!HaveValidEncoder("EnableOpusDtx")) {
|
||||
return -1;
|
||||
}
|
||||
return encoder_stack_->SetDtx(true) ? 0 : -1;
|
||||
}
|
||||
|
||||
int AudioCodingModuleImpl::DisableOpusDtx() {
|
||||
rtc::CritScope lock(&acm_crit_sect_);
|
||||
if (!HaveValidEncoder("DisableOpusDtx")) {
|
||||
return -1;
|
||||
}
|
||||
return encoder_stack_->SetDtx(false) ? 0 : -1;
|
||||
}
|
||||
|
||||
absl::optional<uint32_t> AudioCodingModuleImpl::PlayoutTimestamp() {
|
||||
return receiver_.GetPlayoutTimestamp();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user