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 22 matching lines...) Expand all Loading... |
33 kLowestPossible = -1, | 33 kLowestPossible = -1, |
34 kDefaultFrequency = kWbInHz | 34 kDefaultFrequency = kWbInHz |
35 }; | 35 }; |
36 | 36 |
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 void 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 // Returns true if a participant is a candidate for mixing. | 53 // Returns true if a participant is a candidate for mixing. |
(...skipping 14 matching lines...) Expand all Loading... |
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_INCLUDE_AUDIO_CONFERENCE_MIXER_H
_ | 77 #endif // WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_INCLUDE_AUDIO_CONFERENCE_MIXER_H
_ |
OLD | NEW |