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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
70 bool AudioEncoder::EnableAudioNetworkAdaptor(const std::string& config_string, | 70 bool AudioEncoder::EnableAudioNetworkAdaptor(const std::string& config_string, |
71 const Clock* clock) { | 71 const Clock* clock) { |
72 return false; | 72 return false; |
73 } | 73 } |
74 | 74 |
75 void AudioEncoder::DisableAudioNetworkAdaptor() {} | 75 void AudioEncoder::DisableAudioNetworkAdaptor() {} |
76 | 76 |
77 void AudioEncoder::OnReceivedUplinkBandwidth(int uplink_bandwidth_bps) {} | 77 void AudioEncoder::OnReceivedUplinkBandwidth(int uplink_bandwidth_bps) {} |
78 | 78 |
79 void AudioEncoder::OnReceivedUplinkPacketLossFraction( | 79 void AudioEncoder::OnReceivedUplinkPacketLossFraction( |
80 float uplink_packet_loss_fraction) {} | 80 float uplink_packet_loss_fraction) { |
81 SetProjectedPacketLossRate(uplink_packet_loss_fraction); | |
minyue-webrtc
2016/10/04 11:03:55
Change the default behavior to call SetProjectedPa
kwiberg-webrtc
2016/10/06 09:46:13
Hmmm... would anyone ever have any reason to overr
minyue-webrtc
2016/10/06 10:32:38
See OnReceivedTargetAudioBitrate, which is easier
| |
82 } | |
81 | 83 |
82 void AudioEncoder::OnReceivedTargetAudioBitrate(int target_audio_bitrate_bps) {} | 84 void AudioEncoder::OnReceivedTargetAudioBitrate(int target_audio_bitrate_bps) { |
85 SetTargetBitrate(target_audio_bitrate_bps); | |
minyue-webrtc
2016/10/04 11:03:55
Change the default behavior to call SetTargetBitra
kwiberg-webrtc
2016/10/06 09:46:13
Same question to ponder as for OnReceivedUplinkPac
minyue-webrtc
2016/10/06 10:32:38
SetTargetBitrate has a defined behavior, which is
kwiberg-webrtc
2016/10/06 10:57:11
No, SetTargetBitrate is defined like this:
// T
minyue-webrtc
2016/10/11 09:00:22
Per offline discussion, we may replace SetTargetBi
| |
86 } | |
83 | 87 |
84 void AudioEncoder::OnReceivedRtt(int rtt_ms) {} | 88 void AudioEncoder::OnReceivedRtt(int rtt_ms) {} |
85 | 89 |
86 void AudioEncoder::SetReceiverFrameLengthRange(int min_frame_length_ms, | 90 void AudioEncoder::SetReceiverFrameLengthRange(int min_frame_length_ms, |
87 int max_frame_length_ms) {} | 91 int max_frame_length_ms) {} |
88 | 92 |
89 } // namespace webrtc | 93 } // namespace webrtc |
OLD | NEW |