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

Side by Side Diff: webrtc/modules/audio_conference_mixer/interface/audio_conference_mixer_defines.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
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_DEF INES_H_
12 #define WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_INCLUDE_AUDIO_CONFERENCE_MIXER_DEF INES_H_
13
14 #pragma message("WARNING: audio_conference_mixer/interface is DEPRECATED; use in clude")
15
16 #include "webrtc/modules/include/module_common_types.h"
17 #include "webrtc/typedefs.h"
18
19 namespace webrtc {
20 class MixHistory;
21
22 // A callback class that all mixer participants must inherit from/implement.
23 class MixerParticipant
24 {
25 public:
26 // The implementation of this function should update audioFrame with new
27 // audio every time it's called.
28 //
29 // If it returns -1, the frame will not be added to the mix.
30 virtual int32_t GetAudioFrame(int32_t id,
31 AudioFrame* audioFrame) = 0;
32
33 // Returns true if the participant was mixed this mix iteration.
34 bool IsMixed() const;
35
36 // This function specifies the sampling frequency needed for the AudioFrame
37 // for future GetAudioFrame(..) calls.
38 virtual int32_t NeededFrequency(int32_t id) const = 0;
39
40 MixHistory* _mixHistory;
41 protected:
42 MixerParticipant();
43 virtual ~MixerParticipant();
44 };
45
46 class AudioMixerOutputReceiver
47 {
48 public:
49 // This callback function provides the mixed audio for this mix iteration.
50 // Note that uniqueAudioFrames is an array of AudioFrame pointers with the
51 // size according to the size parameter.
52 virtual void NewMixedAudio(const int32_t id,
53 const AudioFrame& generalAudioFrame,
54 const AudioFrame** uniqueAudioFrames,
55 const uint32_t size) = 0;
56 protected:
57 AudioMixerOutputReceiver() {}
58 virtual ~AudioMixerOutputReceiver() {}
59 };
60 } // namespace webrtc
61
62 #endif // WEBRTC_MODULES_AUDIO_CONFERENCE_MIXER_INCLUDE_AUDIO_CONFERENCE_MIXER_D EFINES_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_conference_mixer/interface/audio_conference_mixer.h ('k') | webrtc/modules/interface/module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698