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

Unified Diff: webrtc/modules/audio_coding/codecs/audio_encoder.cc

Issue 2390883004: Hooking up audio network adaptor to VoE. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/codecs/audio_encoder.cc
diff --git a/webrtc/modules/audio_coding/codecs/audio_encoder.cc b/webrtc/modules/audio_coding/codecs/audio_encoder.cc
index 1216484b4d189d3dd3b93247019851db3a3f17f5..956c4e086f0dbf244cb348ad93083d19ad252411 100644
--- a/webrtc/modules/audio_coding/codecs/audio_encoder.cc
+++ b/webrtc/modules/audio_coding/codecs/audio_encoder.cc
@@ -77,9 +77,13 @@ void AudioEncoder::DisableAudioNetworkAdaptor() {}
void AudioEncoder::OnReceivedUplinkBandwidth(int uplink_bandwidth_bps) {}
void AudioEncoder::OnReceivedUplinkPacketLossFraction(
- float uplink_packet_loss_fraction) {}
+ float uplink_packet_loss_fraction) {
+ 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
+}
-void AudioEncoder::OnReceivedTargetAudioBitrate(int target_audio_bitrate_bps) {}
+void AudioEncoder::OnReceivedTargetAudioBitrate(int target_audio_bitrate_bps) {
+ 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
+}
void AudioEncoder::OnReceivedRtt(int rtt_ms) {}

Powered by Google App Engine
This is Rietveld 408576698