| 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_AUDIO_PROCESSING_IMPL_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ | 
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ | 
| 13 | 13 | 
| 14 #include <list> | 14 #include <list> | 
| 15 #include <memory> | 15 #include <memory> | 
| 16 #include <string> | 16 #include <string> | 
| 17 #include <vector> | 17 #include <vector> | 
| 18 | 18 | 
| 19 #include "webrtc/base/criticalsection.h" | 19 #include "webrtc/base/criticalsection.h" | 
| 20 #include "webrtc/base/function_view.h" | 20 #include "webrtc/base/function_view.h" | 
| 21 #include "webrtc/base/gtest_prod_util.h" | 21 #include "webrtc/base/gtest_prod_util.h" | 
| 22 #include "webrtc/base/ignore_wundef.h" | 22 #include "webrtc/base/ignore_wundef.h" | 
| 23 #include "webrtc/base/swap_queue.h" | 23 #include "webrtc/base/swap_queue.h" | 
| 24 #include "webrtc/base/thread_annotations.h" | 24 #include "webrtc/base/thread_annotations.h" | 
| 25 #include "webrtc/modules/audio_processing/audio_buffer.h" | 25 #include "webrtc/modules/audio_processing/audio_buffer.h" | 
| 26 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 26 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 
| 27 #include "webrtc/modules/audio_processing/render_queue_item_verifier.h" | 27 #include "webrtc/modules/audio_processing/render_queue_item_verifier.h" | 
|  | 28 #include "webrtc/modules/audio_processing/rms_level.h" | 
| 28 #include "webrtc/system_wrappers/include/file_wrapper.h" | 29 #include "webrtc/system_wrappers/include/file_wrapper.h" | 
| 29 | 30 | 
| 30 #ifdef WEBRTC_AUDIOPROC_DEBUG_DUMP | 31 #ifdef WEBRTC_AUDIOPROC_DEBUG_DUMP | 
| 31 // Files generated at build-time by the protobuf compiler. | 32 // Files generated at build-time by the protobuf compiler. | 
| 32 RTC_PUSH_IGNORING_WUNDEF() | 33 RTC_PUSH_IGNORING_WUNDEF() | 
| 33 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD | 34 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD | 
| 34 #include "external/webrtc/webrtc/modules/audio_processing/debug.pb.h" | 35 #include "external/webrtc/webrtc/modules/audio_processing/debug.pb.h" | 
| 35 #else | 36 #else | 
| 36 #include "webrtc/modules/audio_processing/debug.pb.h" | 37 #include "webrtc/modules/audio_processing/debug.pb.h" | 
| 37 #endif | 38 #endif | 
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 399   size_t agc_render_queue_element_max_size_ GUARDED_BY(crit_render_) | 400   size_t agc_render_queue_element_max_size_ GUARDED_BY(crit_render_) | 
| 400       GUARDED_BY(crit_capture_) = 0; | 401       GUARDED_BY(crit_capture_) = 0; | 
| 401   std::vector<int16_t> agc_render_queue_buffer_ GUARDED_BY(crit_render_); | 402   std::vector<int16_t> agc_render_queue_buffer_ GUARDED_BY(crit_render_); | 
| 402   std::vector<int16_t> agc_capture_queue_buffer_ GUARDED_BY(crit_capture_); | 403   std::vector<int16_t> agc_capture_queue_buffer_ GUARDED_BY(crit_capture_); | 
| 403 | 404 | 
| 404   size_t red_render_queue_element_max_size_ GUARDED_BY(crit_render_) | 405   size_t red_render_queue_element_max_size_ GUARDED_BY(crit_render_) | 
| 405       GUARDED_BY(crit_capture_) = 0; | 406       GUARDED_BY(crit_capture_) = 0; | 
| 406   std::vector<float> red_render_queue_buffer_ GUARDED_BY(crit_render_); | 407   std::vector<float> red_render_queue_buffer_ GUARDED_BY(crit_render_); | 
| 407   std::vector<float> red_capture_queue_buffer_ GUARDED_BY(crit_capture_); | 408   std::vector<float> red_capture_queue_buffer_ GUARDED_BY(crit_capture_); | 
| 408 | 409 | 
|  | 410   RMSLevel rms_ GUARDED_BY(crit_capture_); | 
|  | 411   int rms_interval_counter_ GUARDED_BY(crit_capture_) = 0; | 
|  | 412 | 
| 409   // Lock protection not needed. | 413   // Lock protection not needed. | 
| 410   std::unique_ptr<SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>>> | 414   std::unique_ptr<SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>>> | 
| 411       aec_render_signal_queue_; | 415       aec_render_signal_queue_; | 
| 412   std::unique_ptr< | 416   std::unique_ptr< | 
| 413       SwapQueue<std::vector<int16_t>, RenderQueueItemVerifier<int16_t>>> | 417       SwapQueue<std::vector<int16_t>, RenderQueueItemVerifier<int16_t>>> | 
| 414       aecm_render_signal_queue_; | 418       aecm_render_signal_queue_; | 
| 415   std::unique_ptr< | 419   std::unique_ptr< | 
| 416       SwapQueue<std::vector<int16_t>, RenderQueueItemVerifier<int16_t>>> | 420       SwapQueue<std::vector<int16_t>, RenderQueueItemVerifier<int16_t>>> | 
| 417       agc_render_signal_queue_; | 421       agc_render_signal_queue_; | 
| 418   std::unique_ptr<SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>>> | 422   std::unique_ptr<SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>>> | 
| 419       red_render_signal_queue_; | 423       red_render_signal_queue_; | 
| 420 }; | 424 }; | 
| 421 | 425 | 
| 422 }  // namespace webrtc | 426 }  // namespace webrtc | 
| 423 | 427 | 
| 424 #endif  // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ | 428 #endif  // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ | 
| OLD | NEW | 
|---|