OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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_MIXER_AUDIO_MIXER_IMPL_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_MIXER_AUDIO_MIXER_IMPL_H_ |
12 #define WEBRTC_MODULES_AUDIO_MIXER_AUDIO_MIXER_IMPL_H_ | 12 #define WEBRTC_MODULES_AUDIO_MIXER_AUDIO_MIXER_IMPL_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "webrtc/api/audio/audio_mixer.h" | 17 #include "webrtc/api/audio/audio_mixer.h" |
18 #include "webrtc/base/scoped_ref_ptr.h" | 18 #include "webrtc/base/scoped_ref_ptr.h" |
19 #include "webrtc/base/thread_annotations.h" | 19 #include "webrtc/base/thread_annotations.h" |
20 #include "webrtc/base/race_checker.h" | 20 #include "webrtc/base/race_checker.h" |
21 #include "webrtc/modules/audio_mixer/frame_combiner.h" | 21 #include "webrtc/modules/audio_mixer/frame_combiner.h" |
22 #include "webrtc/modules/audio_mixer/output_rate_calculator.h" | 22 #include "webrtc/modules/audio_mixer/output_rate_calculator.h" |
23 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 23 #include "webrtc/modules/audio_processing/include/audio_processing.h" |
24 #include "webrtc/modules/include/module_common_types.h" | 24 #include "webrtc/modules/include/module_common_types.h" |
25 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | |
26 #include "webrtc/typedefs.h" | 25 #include "webrtc/typedefs.h" |
27 | 26 |
28 namespace webrtc { | 27 namespace webrtc { |
29 | 28 |
30 typedef std::vector<AudioFrame*> AudioFrameList; | 29 typedef std::vector<AudioFrame*> AudioFrameList; |
31 | 30 |
32 class AudioMixerImpl : public AudioMixer { | 31 class AudioMixerImpl : public AudioMixer { |
33 public: | 32 public: |
34 struct SourceStatus { | 33 struct SourceStatus { |
35 SourceStatus(Source* audio_source, bool is_mixed, float gain) | 34 SourceStatus(Source* audio_source, bool is_mixed, float gain) |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 SourceStatusList audio_source_list_ GUARDED_BY(crit_); // May be mixed. | 110 SourceStatusList audio_source_list_ GUARDED_BY(crit_); // May be mixed. |
112 | 111 |
113 // Component that handles actual adding of audio frames. | 112 // Component that handles actual adding of audio frames. |
114 FrameCombiner frame_combiner_ GUARDED_BY(race_checker_); | 113 FrameCombiner frame_combiner_ GUARDED_BY(race_checker_); |
115 | 114 |
116 RTC_DISALLOW_COPY_AND_ASSIGN(AudioMixerImpl); | 115 RTC_DISALLOW_COPY_AND_ASSIGN(AudioMixerImpl); |
117 }; | 116 }; |
118 } // namespace webrtc | 117 } // namespace webrtc |
119 | 118 |
120 #endif // WEBRTC_MODULES_AUDIO_MIXER_AUDIO_MIXER_IMPL_H_ | 119 #endif // WEBRTC_MODULES_AUDIO_MIXER_AUDIO_MIXER_IMPL_H_ |
OLD | NEW |