mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-12 21:30:45 +01:00
Cleanup after sorting out dependencies of OutputRateCalculator
Bug: webrtc:12035,webrtc:12036 Change-Id: I774f640a96b80e4942e4166f69475fe47f1bd0ea Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/189801 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Olga Sharonova <olka@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32451}
This commit is contained in:
parent
ce8448a380
commit
81bf2fe945
1 changed files with 1 additions and 13 deletions
|
@ -22,19 +22,7 @@ namespace webrtc {
|
|||
class OutputRateCalculator {
|
||||
public:
|
||||
virtual int CalculateOutputRateFromRange(
|
||||
rtc::ArrayView<const int> preferred_sample_rates) {
|
||||
// TODO(olka): Temporary workaround to reslove client dependencies.
|
||||
std::vector<int> sample_rates(preferred_sample_rates.cbegin(),
|
||||
preferred_sample_rates.cend());
|
||||
return CalculateOutputRate(sample_rates);
|
||||
}
|
||||
|
||||
// TODO(olka) to be removed as soon as the clients are switched to
|
||||
// CalculateOutputRateFromRange()
|
||||
virtual int CalculateOutputRate(
|
||||
const std::vector<int>& preferred_sample_rates) {
|
||||
return CalculateOutputRateFromRange(preferred_sample_rates);
|
||||
}
|
||||
rtc::ArrayView<const int> preferred_sample_rates) = 0;
|
||||
|
||||
virtual ~OutputRateCalculator() {}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue