Index: webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_defines.h |
diff --git a/webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_defines.h b/webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_defines.h |
index 5d58f42435ef6ee6cfc302b3dcd57b74e744a075..417fc5954800a97587ae535713ed8974840bb514 100644 |
--- a/webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_defines.h |
+++ b/webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_defines.h |
@@ -28,6 +28,20 @@ public: |
virtual int32_t GetAudioFrame(int32_t id, |
AudioFrame* audioFrame) = 0; |
kwiberg-webrtc
2016/05/17 11:00:28
You need to add a default implementation of this o
hlundin-webrtc
2016/05/17 12:47:34
Done. I removed the implementation of this one in
|
+ // The implementation of this function should update audio_frame with new |
+ // audio every time it's called. The implementation must set the value of |
+ // |*muted| to either true or false. If set to true, the audio samples in |
+ // audio_frame will not be used; instead, they will be implicitly |
+ // interpreted as being all zero. |
+ // |
+ // If it returns -1, the frame will not be added to the mix. |
kwiberg-webrtc
2016/05/17 11:00:27
Mmmmm... maybe take the time to de-stone-age the r
hlundin-webrtc
2016/05/17 12:47:34
Per offline discussion, I implemented this as an e
|
+ virtual int32_t GetAudioFrameWithMuted(int32_t id, |
+ AudioFrame* audio_frame, |
+ bool* muted) { |
+ *muted = false; |
+ return GetAudioFrame(id, audio_frame); |
+ } |
+ |
// Returns true if the participant was mixed this mix iteration. |
bool IsMixed() const; |