Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1222)

Side by Side Diff: webrtc/modules/audio_coding/codecs/audio_encoder.cc

Issue 2177263002: Regression test for issue where Opus DTX status was being forgotten. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Renamed GetOpusDtx to GetOpusDtxStatus to avoid naming conflict with FakeWebRtcVoiceEngine. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 44
45 bool AudioEncoder::SetFec(bool enable) { 45 bool AudioEncoder::SetFec(bool enable) {
46 return !enable; 46 return !enable;
47 } 47 }
48 48
49 bool AudioEncoder::SetDtx(bool enable) { 49 bool AudioEncoder::SetDtx(bool enable) {
50 return !enable; 50 return !enable;
51 } 51 }
52 52
53 bool AudioEncoder::GetDtx() const {
54 return false;
55 }
56
53 bool AudioEncoder::SetApplication(Application application) { 57 bool AudioEncoder::SetApplication(Application application) {
54 return false; 58 return false;
55 } 59 }
56 60
57 void AudioEncoder::SetMaxPlaybackRate(int frequency_hz) {} 61 void AudioEncoder::SetMaxPlaybackRate(int frequency_hz) {}
58 62
59 void AudioEncoder::SetProjectedPacketLossRate(double fraction) {} 63 void AudioEncoder::SetProjectedPacketLossRate(double fraction) {}
60 64
61 void AudioEncoder::SetTargetBitrate(int target_bps) {} 65 void AudioEncoder::SetTargetBitrate(int target_bps) {}
62 66
63 rtc::ArrayView<std::unique_ptr<AudioEncoder>> 67 rtc::ArrayView<std::unique_ptr<AudioEncoder>>
64 AudioEncoder::ReclaimContainedEncoders() { return nullptr; } 68 AudioEncoder::ReclaimContainedEncoders() { return nullptr; }
65 69
66 } // namespace webrtc 70 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/audio_encoder.h ('k') | webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698