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

Unified Diff: webrtc/audio/audio_send_stream.cc

Issue 2397573006: Using AudioOption to enable audio network adaptor. (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/audio/audio_send_stream.cc
diff --git a/webrtc/audio/audio_send_stream.cc b/webrtc/audio/audio_send_stream.cc
index ee84b96aaa3700a8e7d937e0cf3d4ec1dfd0990d..028822f040156d51a5be1c35badc1966f13c025f 100644
--- a/webrtc/audio/audio_send_stream.cc
+++ b/webrtc/audio/audio_send_stream.cc
@@ -273,6 +273,24 @@ uint32_t AudioSendStream::OnBitrateUpdated(uint32_t bitrate_bps,
return 0;
}
+bool AudioSendStream::EnableAudioNetworkAdaptor(
+ const std::string& config_string) {
+ RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ return channel_proxy_->EnableAudioNetworkAdaptor(config_string);
+}
+
+void AudioSendStream::DisableAudioNetworkAdaptor() {
+ RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ channel_proxy_->DisableAudioNetworkAdaptor();
+}
+
+void AudioSendStream::SetReceiverFrameLengthRange(int min_frame_length_ms,
+ int max_frame_length_ms) {
+ RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ channel_proxy_->SetReceiverFrameLengthRange(min_frame_length_ms,
+ max_frame_length_ms);
+}
+
const webrtc::AudioSendStream::Config& AudioSendStream::config() const {
RTC_DCHECK(thread_checker_.CalledOnValidThread());
return config_;

Powered by Google App Engine
This is Rietveld 408576698