Delete deprecated methods on AudioCodingModule
Bug: None Change-Id: I05f1ab6cdd6ac52972835af7ea94aacf5f64d673 Reviewed-on: https://webrtc-review.googlesource.com/95482 Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24388}
This commit is contained in:
@ -158,8 +158,6 @@ class AudioCodingModuleImpl final : public AudioCodingModule {
|
||||
// Smallest latency NetEq will maintain.
|
||||
int LeastRequiredDelayMs() const override;
|
||||
|
||||
RTC_DEPRECATED int32_t PlayoutTimestamp(uint32_t* timestamp) override;
|
||||
|
||||
absl::optional<uint32_t> PlayoutTimestamp() override;
|
||||
|
||||
int FilteredCurrentDelayMs() const override;
|
||||
@ -171,7 +169,6 @@ class AudioCodingModuleImpl final : public AudioCodingModule {
|
||||
int PlayoutData10Ms(int desired_freq_hz,
|
||||
AudioFrame* audio_frame,
|
||||
bool* muted) override;
|
||||
int PlayoutData10Ms(int desired_freq_hz, AudioFrame* audio_frame) override;
|
||||
|
||||
/////////////////////////////////////////
|
||||
// Statistics
|
||||
@ -1109,14 +1106,6 @@ int AudioCodingModuleImpl::PlayoutData10Ms(int desired_freq_hz,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int AudioCodingModuleImpl::PlayoutData10Ms(int desired_freq_hz,
|
||||
AudioFrame* audio_frame) {
|
||||
bool muted;
|
||||
int ret = PlayoutData10Ms(desired_freq_hz, audio_frame, &muted);
|
||||
RTC_DCHECK(!muted);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////
|
||||
// Statistics
|
||||
//
|
||||
@ -1181,14 +1170,6 @@ int AudioCodingModuleImpl::DisableOpusDtx() {
|
||||
return encoder_stack_->SetDtx(false) ? 0 : -1;
|
||||
}
|
||||
|
||||
int32_t AudioCodingModuleImpl::PlayoutTimestamp(uint32_t* timestamp) {
|
||||
absl::optional<uint32_t> ts = PlayoutTimestamp();
|
||||
if (!ts)
|
||||
return -1;
|
||||
*timestamp = *ts;
|
||||
return 0;
|
||||
}
|
||||
|
||||
absl::optional<uint32_t> AudioCodingModuleImpl::PlayoutTimestamp() {
|
||||
return receiver_.GetPlayoutTimestamp();
|
||||
}
|
||||
|
Reference in New Issue
Block a user