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

Unified Diff: webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_defines.h

Issue 1986093002: Propagate muted info from VoE Channel to AudioConferenceMixer (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@mixer-mod-3
Patch Set: Created 4 years, 7 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 | « no previous file | webrtc/modules/audio_conference_mixer/source/audio_conference_mixer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | webrtc/modules/audio_conference_mixer/source/audio_conference_mixer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698