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

Unified Diff: webrtc/api/call/audio_send_stream.h

Issue 2397573006: Using AudioOption to enable audio network adaptor. (Closed)
Patch Set: new approach: go through AudioSendStream's ctor 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
« no previous file with comments | « no previous file | webrtc/audio/audio_send_stream.cc » ('j') | webrtc/audio/audio_send_stream.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/call/audio_send_stream.h
diff --git a/webrtc/api/call/audio_send_stream.h b/webrtc/api/call/audio_send_stream.h
index ae7531cbcb372333e803b7ceda91a78cf6514ea6..c6d90fd6a5d8f73233f383f5755aa11eb71b74c6 100644
--- a/webrtc/api/call/audio_send_stream.h
+++ b/webrtc/api/call/audio_send_stream.h
@@ -89,6 +89,9 @@ class AudioSendStream {
int min_bitrate_kbps = -1;
int max_bitrate_kbps = -1;
+ bool enable_audio_network_adaptor = false;
+ std::string audio_network_adaptor_config;
+
struct SendCodecSpec {
SendCodecSpec() {
webrtc::CodecInst empty_inst = {0};
@@ -118,6 +121,12 @@ class AudioSendStream {
if (cng_plfreq != rhs.cng_plfreq) {
return false;
}
+ if (max_ptime_ms != rhs.max_ptime_ms) {
+ return false;
+ }
+ if (min_ptime_ms != rhs.min_ptime_ms) {
+ return false;
+ }
if (codec_inst != rhs.codec_inst) {
return false;
}
@@ -135,6 +144,8 @@ class AudioSendStream {
int opus_max_playback_rate = 0;
int cng_payload_type = -1;
int cng_plfreq = -1;
+ int max_ptime_ms = -1;
+ int min_ptime_ms = -1;
webrtc::CodecInst codec_inst;
} send_codec_spec;
};
« no previous file with comments | « no previous file | webrtc/audio/audio_send_stream.cc » ('j') | webrtc/audio/audio_send_stream.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698