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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_INCLUDE_AUDIO_CONFERENCE_MIXER_DEF INES_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_INCLUDE_AUDIO_CONFERENCE_MIXER_DEF INES_H_
12 #define WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_INCLUDE_AUDIO_CONFERENCE_MIXER_DEF INES_H_ 12 #define WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_INCLUDE_AUDIO_CONFERENCE_MIXER_DEF INES_H_
13 13
14 #include "webrtc/modules/include/module_common_types.h" 14 #include "webrtc/modules/include/module_common_types.h"
15 #include "webrtc/typedefs.h" 15 #include "webrtc/typedefs.h"
16 16
17 namespace webrtc { 17 namespace webrtc {
18 class MixHistory; 18 class MixHistory;
19 19
20 // A callback class that all mixer participants must inherit from/implement. 20 // A callback class that all mixer participants must inherit from/implement.
21 class MixerParticipant 21 class MixerParticipant
22 { 22 {
23 public: 23 public:
24 // The implementation of this function should update audioFrame with new 24 // The implementation of this function should update audioFrame with new
25 // audio every time it's called. 25 // audio every time it's called.
26 // 26 //
27 // If it returns -1, the frame will not be added to the mix. 27 // If it returns -1, the frame will not be added to the mix.
28 virtual int32_t GetAudioFrame(int32_t id, 28 virtual int32_t GetAudioFrame(int32_t id,
29 AudioFrame* audioFrame) = 0; 29 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
30 30
31 // The implementation of this function should update audio_frame with new
32 // audio every time it's called. The implementation must set the value of
33 // |*muted| to either true or false. If set to true, the audio samples in
34 // audio_frame will not be used; instead, they will be implicitly
35 // interpreted as being all zero.
36 //
37 // 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
38 virtual int32_t GetAudioFrameWithMuted(int32_t id,
39 AudioFrame* audio_frame,
40 bool* muted) {
41 *muted = false;
42 return GetAudioFrame(id, audio_frame);
43 }
44
31 // Returns true if the participant was mixed this mix iteration. 45 // Returns true if the participant was mixed this mix iteration.
32 bool IsMixed() const; 46 bool IsMixed() const;
33 47
34 // This function specifies the sampling frequency needed for the AudioFrame 48 // This function specifies the sampling frequency needed for the AudioFrame
35 // for future GetAudioFrame(..) calls. 49 // for future GetAudioFrame(..) calls.
36 virtual int32_t NeededFrequency(int32_t id) const = 0; 50 virtual int32_t NeededFrequency(int32_t id) const = 0;
37 51
38 MixHistory* _mixHistory; 52 MixHistory* _mixHistory;
39 protected: 53 protected:
40 MixerParticipant(); 54 MixerParticipant();
(...skipping 10 matching lines...) Expand all
51 const AudioFrame& generalAudioFrame, 65 const AudioFrame& generalAudioFrame,
52 const AudioFrame** uniqueAudioFrames, 66 const AudioFrame** uniqueAudioFrames,
53 const uint32_t size) = 0; 67 const uint32_t size) = 0;
54 protected: 68 protected:
55 AudioMixerOutputReceiver() {} 69 AudioMixerOutputReceiver() {}
56 virtual ~AudioMixerOutputReceiver() {} 70 virtual ~AudioMixerOutputReceiver() {}
57 }; 71 };
58 } // namespace webrtc 72 } // namespace webrtc
59 73
60 #endif // WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_INCLUDE_AUDIO_CONFERENCE_MIXER_D EFINES_H_ 74 #endif // WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_INCLUDE_AUDIO_CONFERENCE_MIXER_D EFINES_H_
OLDNEW
« 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