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

Side by Side Diff: webrtc/modules/audio_conference_mixer/interface/audio_conference_mixer.h

Issue 1414793020: Remove interface directories kept to avoid breaking downstream. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 1 month 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/interface/audio_conference_mixer_defines.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_INCLUDE_AUDIO_CONFERENCE_MIXER_H_
12 #define WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_INCLUDE_AUDIO_CONFERENCE_MIXER_H_
13
14 #pragma message("WARNING: audio_conference_mixer/interface is DEPRECATED; use in clude")
15
16 #include "webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_d efines.h"
17 #include "webrtc/modules/include/module.h"
18 #include "webrtc/modules/include/module_common_types.h"
19
20 namespace webrtc {
21 class AudioMixerOutputReceiver;
22 class MixerParticipant;
23 class Trace;
24
25 class AudioConferenceMixer : public Module
26 {
27 public:
28 enum {kMaximumAmountOfMixedParticipants = 3};
29 enum Frequency
30 {
31 kNbInHz = 8000,
32 kWbInHz = 16000,
33 kSwbInHz = 32000,
34 kFbInHz = 48000,
35 kLowestPossible = -1,
36 kDefaultFrequency = kWbInHz
37 };
38
39 // Factory method. Constructor disabled.
40 static AudioConferenceMixer* Create(int id);
41 virtual ~AudioConferenceMixer() {}
42
43 // Module functions
44 int64_t TimeUntilNextProcess() override = 0;
45 int32_t Process() override = 0;
46
47 // Register/unregister a callback class for receiving the mixed audio.
48 virtual int32_t RegisterMixedStreamCallback(
49 AudioMixerOutputReceiver* receiver) = 0;
50 virtual int32_t UnRegisterMixedStreamCallback() = 0;
51
52 // Add/remove participants as candidates for mixing.
53 virtual int32_t SetMixabilityStatus(MixerParticipant* participant,
54 bool mixable) = 0;
55 // Returns true if a participant is a candidate for mixing.
56 virtual bool MixabilityStatus(
57 const MixerParticipant& participant) const = 0;
58
59 // Inform the mixer that the participant should always be mixed and not
60 // count toward the number of mixed participants. Note that a participant
61 // must have been added to the mixer (by calling SetMixabilityStatus())
62 // before this function can be successfully called.
63 virtual int32_t SetAnonymousMixabilityStatus(
64 MixerParticipant* participant, bool mixable) = 0;
65 // Returns true if the participant is mixed anonymously.
66 virtual bool AnonymousMixabilityStatus(
67 const MixerParticipant& participant) const = 0;
68
69 // Set the minimum sampling frequency at which to mix. The mixing algorithm
70 // may still choose to mix at a higher samling frequency to avoid
71 // downsampling of audio contributing to the mixed audio.
72 virtual int32_t SetMinimumMixingFrequency(Frequency freq) = 0;
73
74 protected:
75 AudioConferenceMixer() {}
76 };
77 } // namespace webrtc
78
79 #endif // WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_INCLUDE_AUDIO_CONFERENCE_MIXER_H _
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_conference_mixer/interface/audio_conference_mixer_defines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698