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

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

Issue 2456363002: Added audio mixer and removed audio device module in AudioState::Config. (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
« no previous file with comments | « webrtc/api/api.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/call/audio_state.h
diff --git a/webrtc/api/call/audio_state.h b/webrtc/api/call/audio_state.h
index ac912773aa5fdeb12a59120b794c269605614050..72a40fc80f7c904d830f1eea2d176ff251f25d8e 100644
--- a/webrtc/api/call/audio_state.h
+++ b/webrtc/api/call/audio_state.h
@@ -10,6 +10,7 @@
#ifndef WEBRTC_API_CALL_AUDIO_STATE_H_
#define WEBRTC_API_CALL_AUDIO_STATE_H_
+#include "webrtc/api/audio/audio_mixer.h"
#include "webrtc/base/refcount.h"
#include "webrtc/base/scoped_ref_ptr.h"
@@ -33,8 +34,9 @@ class AudioState : public rtc::RefCountInterface {
// the AudioState itself.
VoiceEngine* voice_engine = nullptr;
- // The AudioDeviceModule associated with the Calls.
- AudioDeviceModule* audio_device_module = nullptr;
aleloi 2016/10/31 11:45:01 This field is currently unused, and AudioState get
kwiberg-webrtc 2016/10/31 12:31:06 Acknowledged.
+ // The audio mixer connected to active receive streams. One per
+ // AudioState.
+ rtc::scoped_refptr<AudioMixer> audio_mixer = nullptr;
kwiberg-webrtc 2016/10/31 12:31:06 You don't need to explicitly initialize scoped_ref
aleloi 2016/10/31 12:44:01 Thanks, removed default initializer (it is called
kwiberg-webrtc 2016/10/31 13:30:33 I think the term is "default member initializer".
aleloi 2016/10/31 14:56:40 Avoiding shared pointers is always good! I've aske
kwiberg-webrtc 2016/11/01 00:45:59 Excellent. It's not always possible to avoid share
ossu 2016/11/01 16:06:36 Agreed. unique_ptr sounds good to me! I'd like to
};
// TODO(solenberg): Replace scoped_refptr with shared_ptr once we can use it.
« no previous file with comments | « webrtc/api/api.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698