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_PROCESSING_GAIN_CONTROL_IMPL_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_IMPL_H_ |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_IMPL_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_IMPL_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "webrtc/base/constructormagic.h" | 17 #include "webrtc/base/constructormagic.h" |
18 #include "webrtc/base/criticalsection.h" | 18 #include "webrtc/base/criticalsection.h" |
| 19 #include "webrtc/base/swap_queue.h" |
19 #include "webrtc/base/thread_annotations.h" | 20 #include "webrtc/base/thread_annotations.h" |
20 #include "webrtc/common_audio/swap_queue.h" | |
21 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 21 #include "webrtc/modules/audio_processing/include/audio_processing.h" |
22 #include "webrtc/modules/audio_processing/render_queue_item_verifier.h" | 22 #include "webrtc/modules/audio_processing/render_queue_item_verifier.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 | 25 |
26 class AudioBuffer; | 26 class AudioBuffer; |
27 | 27 |
28 class GainControlImpl : public GainControl { | 28 class GainControlImpl : public GainControl { |
29 public: | 29 public: |
30 GainControlImpl(rtc::CriticalSection* crit_render, | 30 GainControlImpl(rtc::CriticalSection* crit_render, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 std::vector<std::unique_ptr<GainController>> gain_controllers_; | 94 std::vector<std::unique_ptr<GainController>> gain_controllers_; |
95 | 95 |
96 rtc::Optional<size_t> num_proc_channels_ GUARDED_BY(crit_capture_); | 96 rtc::Optional<size_t> num_proc_channels_ GUARDED_BY(crit_capture_); |
97 rtc::Optional<int> sample_rate_hz_ GUARDED_BY(crit_capture_); | 97 rtc::Optional<int> sample_rate_hz_ GUARDED_BY(crit_capture_); |
98 | 98 |
99 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(GainControlImpl); | 99 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(GainControlImpl); |
100 }; | 100 }; |
101 } // namespace webrtc | 101 } // namespace webrtc |
102 | 102 |
103 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_IMPL_H_ | 103 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_IMPL_H_ |
OLD | NEW |