| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 } | 179 } |
| 180 | 180 |
| 181 bool AudioEncoderCng::SetDtx(bool enable) { | 181 bool AudioEncoderCng::SetDtx(bool enable) { |
| 182 return speech_encoder_->SetDtx(enable); | 182 return speech_encoder_->SetDtx(enable); |
| 183 } | 183 } |
| 184 | 184 |
| 185 bool AudioEncoderCng::SetApplication(Application application) { | 185 bool AudioEncoderCng::SetApplication(Application application) { |
| 186 return speech_encoder_->SetApplication(application); | 186 return speech_encoder_->SetApplication(application); |
| 187 } | 187 } |
| 188 | 188 |
| 189 bool AudioEncoderCng::SetMaxPlaybackRate(int frequency_hz) { | 189 void AudioEncoderCng::SetMaxPlaybackRate(int frequency_hz) { |
| 190 return speech_encoder_->SetMaxPlaybackRate(frequency_hz); | 190 speech_encoder_->SetMaxPlaybackRate(frequency_hz); |
| 191 } | 191 } |
| 192 | 192 |
| 193 void AudioEncoderCng::SetProjectedPacketLossRate(double fraction) { | 193 void AudioEncoderCng::SetProjectedPacketLossRate(double fraction) { |
| 194 speech_encoder_->SetProjectedPacketLossRate(fraction); | 194 speech_encoder_->SetProjectedPacketLossRate(fraction); |
| 195 } | 195 } |
| 196 | 196 |
| 197 void AudioEncoderCng::SetTargetBitrate(int bits_per_second) { | 197 void AudioEncoderCng::SetTargetBitrate(int bits_per_second) { |
| 198 speech_encoder_->SetTargetBitrate(bits_per_second); | 198 speech_encoder_->SetTargetBitrate(bits_per_second); |
| 199 } | 199 } |
| 200 | 200 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 } | 256 } |
| 257 } | 257 } |
| 258 return info; | 258 return info; |
| 259 } | 259 } |
| 260 | 260 |
| 261 size_t AudioEncoderCng::SamplesPer10msFrame() const { | 261 size_t AudioEncoderCng::SamplesPer10msFrame() const { |
| 262 return rtc::CheckedDivExact(10 * SampleRateHz(), 1000); | 262 return rtc::CheckedDivExact(10 * SampleRateHz(), 1000); |
| 263 } | 263 } |
| 264 | 264 |
| 265 } // namespace webrtc | 265 } // namespace webrtc |
| OLD | NEW |