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

Unified Diff: webrtc/media/base/mediachannel.h

Issue 2397573006: Using AudioOption to enable audio network adaptor. (Closed)
Patch Set: fixing some problems 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/media/base/mediachannel.h
diff --git a/webrtc/media/base/mediachannel.h b/webrtc/media/base/mediachannel.h
index 781a46d90c63122bc6504ca02f97cf3ecefa742a..b35981d2829fafde271d9f56d35f4cbebb0649f4 100644
--- a/webrtc/media/base/mediachannel.h
+++ b/webrtc/media/base/mediachannel.h
@@ -168,6 +168,8 @@ struct AudioOptions {
SetFrom(&recording_sample_rate, change.recording_sample_rate);
SetFrom(&playout_sample_rate, change.playout_sample_rate);
SetFrom(&combined_audio_video_bwe, change.combined_audio_video_bwe);
+ SetFrom(&audio_network_adaptor, change.audio_network_adaptor);
+ SetFrom(&audio_network_adaptor_config, change.audio_network_adaptor_config);
}
bool operator==(const AudioOptions& o) const {
@@ -195,7 +197,9 @@ struct AudioOptions {
tx_agc_limiter == o.tx_agc_limiter &&
recording_sample_rate == o.recording_sample_rate &&
playout_sample_rate == o.playout_sample_rate &&
- combined_audio_video_bwe == o.combined_audio_video_bwe;
+ combined_audio_video_bwe == o.combined_audio_video_bwe &&
+ audio_network_adaptor == o.audio_network_adaptor &&
+ audio_network_adaptor_config == o.audio_network_adaptor_config;
}
bool operator!=(const AudioOptions& o) const { return !(*this == o); }
@@ -227,6 +231,7 @@ struct AudioOptions {
ost << ToStringIfSet("recording_sample_rate", recording_sample_rate);
ost << ToStringIfSet("playout_sample_rate", playout_sample_rate);
ost << ToStringIfSet("combined_audio_video_bwe", combined_audio_video_bwe);
+ ost << ToStringIfSet("audio_network_adaptor", audio_network_adaptor);
the sun 2016/10/25 09:25:46 audio_network_adaptor_config missing?
minyue-webrtc 2016/10/27 14:33:10 I don't know if to String will be useful for audio
the sun 2016/10/28 18:21:52 Oh? What does it look like? Is it really not possi
minyue-webrtc 2016/10/28 18:41:57 It is a proto buffer serialized string. it is a st
the sun 2016/10/28 19:04:47 Ah, in that case, just leave: // The adaptor confi
ost << "}";
return ost.str();
}
@@ -267,6 +272,10 @@ struct AudioOptions {
// "googCombinedAudioVideoBwe", but not used anywhere. So delete it,
// and check if any other AudioOptions members are unused.
rtc::Optional<bool> combined_audio_video_bwe;
+ // Enable audio network adaptor.
+ rtc::Optional<bool> audio_network_adaptor;
minyue-webrtc 2016/10/24 10:57:11 I initially wanted to let audio_network_adaptor_co
the sun 2016/10/25 09:46:32 How are you going to roll the feature out? If you'
minyue-webrtc 2016/10/27 14:33:10 The feature is configured in a way that it is up t
the sun 2016/10/28 19:04:47 Btw, what happened to your idea of only having the
minyue-webrtc 2016/10/28 20:15:03 I initially wanted to let audio_network_adaptor_co
the sun 2016/10/28 20:33:08 I probably misunderstood then - I thought you said
minyue-webrtc 2016/10/28 21:05:45 If we use only a Option<string>, when a second set
+ // Config string for audio network adaptor.
+ rtc::Optional<std::string> audio_network_adaptor_config;
private:
template <typename T>

Powered by Google App Engine
This is Rietveld 408576698