Make NetEqController::TargetLevelMs const, part 2

Followup to https://webrtc-review.googlesource.com/c/src/+/183881.

Bug: webrtc:11622
Change-Id: I8d76bf082e81ba1217d20e57c6ae6555eca2fc7b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/183883
Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32078}
This commit is contained in:
Niels Möller
2020-09-11 09:19:30 +02:00
committed by Commit Bot
parent f5c373b5fb
commit 673027b4a5
3 changed files with 3 additions and 11 deletions

View File

@ -152,15 +152,7 @@ class NetEqController {
virtual void AddSampleMemory(int32_t value) = 0;
// Returns the target buffer level in ms.
// TODO(bugs.webrtc.org/11622): Delete the non-const version and default
// implementation, once downstream code is updated.
virtual int TargetLevelMs() {
return const_cast<const NetEqController*>(this)->TargetLevelMs();
}
virtual int TargetLevelMs() const {
return const_cast<NetEqController*>(this)->TargetLevelMs();
}
virtual int TargetLevelMs() const = 0;
// Notify the NetEqController that a packet has arrived. Returns the relative
// arrival delay, if it can be computed.