OLD | NEW |
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 |
(...skipping 26 matching lines...) Expand all Loading... |
37 // Factory method. Constructor disabled. | 37 // Factory method. Constructor disabled. |
38 static AudioConferenceMixer* Create(int id); | 38 static AudioConferenceMixer* Create(int id); |
39 virtual ~AudioConferenceMixer() {} | 39 virtual ~AudioConferenceMixer() {} |
40 | 40 |
41 // Module functions | 41 // Module functions |
42 int64_t TimeUntilNextProcess() override = 0; | 42 int64_t TimeUntilNextProcess() override = 0; |
43 int32_t Process() override = 0; | 43 int32_t Process() override = 0; |
44 | 44 |
45 // Register/unregister a callback class for receiving the mixed audio. | 45 // Register/unregister a callback class for receiving the mixed audio. |
46 virtual int32_t RegisterMixedStreamCallback( | 46 virtual int32_t RegisterMixedStreamCallback( |
47 AudioMixerOutputReceiver& receiver) = 0; | 47 AudioMixerOutputReceiver* receiver) = 0; |
48 virtual int32_t UnRegisterMixedStreamCallback() = 0; | 48 virtual int32_t UnRegisterMixedStreamCallback() = 0; |
49 | 49 |
50 // Add/remove participants as candidates for mixing. | 50 // Add/remove participants as candidates for mixing. |
51 virtual int32_t SetMixabilityStatus(MixerParticipant& participant, | 51 virtual int32_t SetMixabilityStatus(MixerParticipant* participant, |
52 bool mixable) = 0; | 52 bool mixable) = 0; |
53 // mixable is set to true if a participant is a candidate for mixing. | 53 // Returns true if a participant is a candidate for mixing. |
54 virtual int32_t MixabilityStatus(MixerParticipant& participant, | 54 virtual bool MixabilityStatus( |
55 bool& mixable) = 0; | 55 const MixerParticipant& participant) const = 0; |
56 | 56 |
57 // Inform the mixer that the participant should always be mixed and not | 57 // Inform the mixer that the participant should always be mixed and not |
58 // count toward the number of mixed participants. Note that a participant | 58 // count toward the number of mixed participants. Note that a participant |
59 // must have been added to the mixer (by calling SetMixabilityStatus()) | 59 // must have been added to the mixer (by calling SetMixabilityStatus()) |
60 // before this function can be successfully called. | 60 // before this function can be successfully called. |
61 virtual int32_t SetAnonymousMixabilityStatus(MixerParticipant& participant, | 61 virtual int32_t SetAnonymousMixabilityStatus( |
62 const bool mixable) = 0; | 62 MixerParticipant* participant, bool mixable) = 0; |
63 // mixable is set to true if the participant is mixed anonymously. | 63 // Returns true if the participant is mixed anonymously. |
64 virtual int32_t AnonymousMixabilityStatus(MixerParticipant& participant, | 64 virtual bool AnonymousMixabilityStatus( |
65 bool& mixable) = 0; | 65 const MixerParticipant& participant) const = 0; |
66 | 66 |
67 // Set the minimum sampling frequency at which to mix. The mixing algorithm | 67 // Set the minimum sampling frequency at which to mix. The mixing algorithm |
68 // may still choose to mix at a higher samling frequency to avoid | 68 // may still choose to mix at a higher samling frequency to avoid |
69 // downsampling of audio contributing to the mixed audio. | 69 // downsampling of audio contributing to the mixed audio. |
70 virtual int32_t SetMinimumMixingFrequency(Frequency freq) = 0; | 70 virtual int32_t SetMinimumMixingFrequency(Frequency freq) = 0; |
71 | 71 |
72 protected: | 72 protected: |
73 AudioConferenceMixer() {} | 73 AudioConferenceMixer() {} |
74 }; | 74 }; |
75 } // namespace webrtc | 75 } // namespace webrtc |
76 | 76 |
77 #endif // WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_INTERFACE_AUDIO_CONFERENCE_MIXER
_H_ | 77 #endif // WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_INTERFACE_AUDIO_CONFERENCE_MIXER
_H_ |
OLD | NEW |