OLD | NEW |
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 void AudioEncoderCopyRed::Reset() { | 96 void AudioEncoderCopyRed::Reset() { |
97 speech_encoder_->Reset(); | 97 speech_encoder_->Reset(); |
98 secondary_encoded_.Clear(); | 98 secondary_encoded_.Clear(); |
99 secondary_info_.encoded_bytes = 0; | 99 secondary_info_.encoded_bytes = 0; |
100 } | 100 } |
101 | 101 |
102 bool AudioEncoderCopyRed::SetFec(bool enable) { | 102 bool AudioEncoderCopyRed::SetFec(bool enable) { |
103 return speech_encoder_->SetFec(enable); | 103 return speech_encoder_->SetFec(enable); |
104 } | 104 } |
105 | 105 |
| 106 bool AudioEncoderCopyRed::SetCbr(bool enable) { |
| 107 return speech_encoder_->SetCbr(enable); |
| 108 } |
| 109 |
106 bool AudioEncoderCopyRed::SetDtx(bool enable) { | 110 bool AudioEncoderCopyRed::SetDtx(bool enable) { |
107 return speech_encoder_->SetDtx(enable); | 111 return speech_encoder_->SetDtx(enable); |
108 } | 112 } |
109 | 113 |
110 bool AudioEncoderCopyRed::SetApplication(Application application) { | 114 bool AudioEncoderCopyRed::SetApplication(Application application) { |
111 return speech_encoder_->SetApplication(application); | 115 return speech_encoder_->SetApplication(application); |
112 } | 116 } |
113 | 117 |
114 void AudioEncoderCopyRed::SetMaxPlaybackRate(int frequency_hz) { | 118 void AudioEncoderCopyRed::SetMaxPlaybackRate(int frequency_hz) { |
115 speech_encoder_->SetMaxPlaybackRate(frequency_hz); | 119 speech_encoder_->SetMaxPlaybackRate(frequency_hz); |
(...skipping 11 matching lines...) Expand all Loading... |
127 } | 131 } |
128 | 132 |
129 void AudioEncoderCopyRed::OnReceivedUplinkBandwidth( | 133 void AudioEncoderCopyRed::OnReceivedUplinkBandwidth( |
130 int target_audio_bitrate_bps, | 134 int target_audio_bitrate_bps, |
131 rtc::Optional<int64_t> probing_interval_ms) { | 135 rtc::Optional<int64_t> probing_interval_ms) { |
132 speech_encoder_->OnReceivedUplinkBandwidth(target_audio_bitrate_bps, | 136 speech_encoder_->OnReceivedUplinkBandwidth(target_audio_bitrate_bps, |
133 probing_interval_ms); | 137 probing_interval_ms); |
134 } | 138 } |
135 | 139 |
136 } // namespace webrtc | 140 } // namespace webrtc |
OLD | NEW |