| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 bool AudioEncoder::GetDtx() const { | 53 bool AudioEncoder::GetDtx() const { |
| 54 return false; | 54 return false; |
| 55 } | 55 } |
| 56 | 56 |
| 57 bool AudioEncoder::SetApplication(Application application) { | 57 bool AudioEncoder::SetApplication(Application application) { |
| 58 return false; | 58 return false; |
| 59 } | 59 } |
| 60 | 60 |
| 61 void AudioEncoder::SetMaxPlaybackRate(int frequency_hz) {} | 61 void AudioEncoder::SetMaxPlaybackRate(int frequency_hz) {} |
| 62 | 62 |
| 63 void AudioEncoder::SetProjectedPacketLossRate(double fraction) {} | |
| 64 | |
| 65 void AudioEncoder::SetTargetBitrate(int target_bps) {} | |
| 66 | |
| 67 rtc::ArrayView<std::unique_ptr<AudioEncoder>> | 63 rtc::ArrayView<std::unique_ptr<AudioEncoder>> |
| 68 AudioEncoder::ReclaimContainedEncoders() { return nullptr; } | 64 AudioEncoder::ReclaimContainedEncoders() { return nullptr; } |
| 69 | 65 |
| 70 bool AudioEncoder::EnableAudioNetworkAdaptor(const std::string& config_string, | 66 bool AudioEncoder::EnableAudioNetworkAdaptor(const std::string& config_string, |
| 71 const Clock* clock) { | 67 const Clock* clock) { |
| 72 return false; | 68 return false; |
| 73 } | 69 } |
| 74 | 70 |
| 75 void AudioEncoder::DisableAudioNetworkAdaptor() {} | 71 void AudioEncoder::DisableAudioNetworkAdaptor() {} |
| 76 | 72 |
| 77 void AudioEncoder::OnReceivedUplinkBandwidth(int uplink_bandwidth_bps) {} | 73 void AudioEncoder::OnReceivedUplinkBandwidth(int uplink_bandwidth_bps) {} |
| 78 | 74 |
| 79 void AudioEncoder::OnReceivedUplinkPacketLossFraction( | 75 void AudioEncoder::OnReceivedUplinkPacketLossFraction( |
| 80 float uplink_packet_loss_fraction) { | 76 float uplink_packet_loss_fraction) {} |
| 81 SetProjectedPacketLossRate(uplink_packet_loss_fraction); | |
| 82 } | |
| 83 | 77 |
| 84 void AudioEncoder::OnReceivedTargetAudioBitrate(int target_audio_bitrate_bps) { | 78 void AudioEncoder::OnReceivedTargetAudioBitrate(int target_audio_bitrate_bps) {} |
| 85 SetTargetBitrate(target_audio_bitrate_bps); | |
| 86 } | |
| 87 | 79 |
| 88 void AudioEncoder::OnReceivedRtt(int rtt_ms) {} | 80 void AudioEncoder::OnReceivedRtt(int rtt_ms) {} |
| 89 | 81 |
| 90 void AudioEncoder::SetReceiverFrameLengthRange(int min_frame_length_ms, | 82 void AudioEncoder::SetReceiverFrameLengthRange(int min_frame_length_ms, |
| 91 int max_frame_length_ms) {} | 83 int max_frame_length_ms) {} |
| 92 | 84 |
| 93 } // namespace webrtc | 85 } // namespace webrtc |
| OLD | NEW |