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 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 int set_analog_level_limits(int minimum, int maximum) override; | 61 int set_analog_level_limits(int minimum, int maximum) override; |
62 int analog_level_minimum() const override; | 62 int analog_level_minimum() const override; |
63 int analog_level_maximum() const override; | 63 int analog_level_maximum() const override; |
64 bool stream_is_saturated() const override; | 64 bool stream_is_saturated() const override; |
65 | 65 |
66 // ProcessingComponent implementation. | 66 // ProcessingComponent implementation. |
67 void* CreateHandle() const override; | 67 void* CreateHandle() const override; |
68 int InitializeHandle(void* handle) const override; | 68 int InitializeHandle(void* handle) const override; |
69 int ConfigureHandle(void* handle) const override; | 69 int ConfigureHandle(void* handle) const override; |
70 void DestroyHandle(void* handle) const override; | 70 void DestroyHandle(void* handle) const override; |
71 int num_handles_required() const override; | 71 size_t num_handles_required() const override; |
72 int GetHandleError(void* handle) const override; | 72 int GetHandleError(void* handle) const override; |
73 | 73 |
74 void AllocateRenderQueue(); | 74 void AllocateRenderQueue(); |
75 | 75 |
76 // Not guarded as its public API is thread safe. | 76 // Not guarded as its public API is thread safe. |
77 const AudioProcessing* apm_; | 77 const AudioProcessing* apm_; |
78 | 78 |
79 rtc::CriticalSection* const crit_render_ ACQUIRED_BEFORE(crit_capture_); | 79 rtc::CriticalSection* const crit_render_ ACQUIRED_BEFORE(crit_capture_); |
80 rtc::CriticalSection* const crit_capture_; | 80 rtc::CriticalSection* const crit_capture_; |
81 | 81 |
(...skipping 14 matching lines...) Expand all Loading... |
96 std::vector<int16_t> capture_queue_buffer_ GUARDED_BY(crit_capture_); | 96 std::vector<int16_t> capture_queue_buffer_ GUARDED_BY(crit_capture_); |
97 | 97 |
98 // Lock protection not needed. | 98 // Lock protection not needed. |
99 rtc::scoped_ptr< | 99 rtc::scoped_ptr< |
100 SwapQueue<std::vector<int16_t>, RenderQueueItemVerifier<int16_t>>> | 100 SwapQueue<std::vector<int16_t>, RenderQueueItemVerifier<int16_t>>> |
101 render_signal_queue_; | 101 render_signal_queue_; |
102 }; | 102 }; |
103 } // namespace webrtc | 103 } // namespace webrtc |
104 | 104 |
105 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_IMPL_H_ | 105 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_IMPL_H_ |
OLD | NEW |