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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
105 : beamformer(beamformer) {} | 105 : beamformer(beamformer) {} |
106 // Accessed internally from capture or during initialization | 106 // Accessed internally from capture or during initialization |
107 std::list<ProcessingComponent*> component_list; | 107 std::list<ProcessingComponent*> component_list; |
108 std::unique_ptr<Beamformer<float>> beamformer; | 108 std::unique_ptr<Beamformer<float>> beamformer; |
109 std::unique_ptr<AgcManagerDirect> agc_manager; | 109 std::unique_ptr<AgcManagerDirect> agc_manager; |
110 }; | 110 }; |
111 | 111 |
112 const int AudioProcessing::kNativeSampleRatesHz[] = { | 112 const int AudioProcessing::kNativeSampleRatesHz[] = { |
113 AudioProcessing::kSampleRate8kHz, | 113 AudioProcessing::kSampleRate8kHz, |
114 AudioProcessing::kSampleRate16kHz, | 114 AudioProcessing::kSampleRate16kHz, |
115 #ifdef WEBRTC_ARCH_ARM_FAMILY | |
116 AudioProcessing::kSampleRate32kHz}; | |
peah-webrtc
2016/03/05 10:56:41
What is the impact of this on current platforms? W
aluebs-webrtc
2016/03/07 11:32:15
What do you mean by "being opened"? If the APM rec
peah-webrtc
2016/03/07 12:50:48
I think I see it now. So this change has nothing t
peah-webrtc
2016/03/07 12:50:48
I have another question about this code. Currently
aluebs-webrtc
2016/03/07 13:02:01
As you say, this would replace the 3-band splittin
peah-webrtc
2016/03/10 07:01:00
Ah, then I see. Then the change is fine.
| |
117 #else | |
115 AudioProcessing::kSampleRate32kHz, | 118 AudioProcessing::kSampleRate32kHz, |
116 AudioProcessing::kSampleRate48kHz}; | 119 AudioProcessing::kSampleRate48kHz}; |
120 #endif // WEBRTC_ARCH_ARM_FAMILY | |
117 const size_t AudioProcessing::kNumNativeSampleRates = | 121 const size_t AudioProcessing::kNumNativeSampleRates = |
118 arraysize(AudioProcessing::kNativeSampleRatesHz); | 122 arraysize(AudioProcessing::kNativeSampleRatesHz); |
119 const int AudioProcessing::kMaxNativeSampleRateHz = AudioProcessing:: | 123 const int AudioProcessing::kMaxNativeSampleRateHz = AudioProcessing:: |
120 kNativeSampleRatesHz[AudioProcessing::kNumNativeSampleRates - 1]; | 124 kNativeSampleRatesHz[AudioProcessing::kNumNativeSampleRates - 1]; |
121 const int AudioProcessing::kMaxAECMSampleRateHz = kSampleRate16kHz; | 125 const int AudioProcessing::kMaxAECMSampleRateHz = kSampleRate16kHz; |
122 | 126 |
123 AudioProcessing* AudioProcessing::Create() { | 127 AudioProcessing* AudioProcessing::Create() { |
124 Config config; | 128 Config config; |
125 return Create(config, nullptr); | 129 return Create(config, nullptr); |
126 } | 130 } |
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1450 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config); | 1454 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config); |
1451 | 1455 |
1452 RETURN_ON_ERR(WriteMessageToDebugFile(debug_dump_.debug_file.get(), | 1456 RETURN_ON_ERR(WriteMessageToDebugFile(debug_dump_.debug_file.get(), |
1453 &debug_dump_.num_bytes_left_for_log_, | 1457 &debug_dump_.num_bytes_left_for_log_, |
1454 &crit_debug_, &debug_dump_.capture)); | 1458 &crit_debug_, &debug_dump_.capture)); |
1455 return kNoError; | 1459 return kNoError; |
1456 } | 1460 } |
1457 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP | 1461 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP |
1458 | 1462 |
1459 } // namespace webrtc | 1463 } // namespace webrtc |
OLD | NEW |