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. |