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 #include "webrtc/modules/audio_processing/audio_buffer.h" | 11 #include "webrtc/modules/audio_processing/audio_buffer.h" |
12 | 12 |
13 #include "webrtc/base/checks.h" | 13 #include "webrtc/common_audio/channel_buffer.h" |
14 #include "webrtc/common_audio/include/audio_util.h" | 14 #include "webrtc/common_audio/include/audio_util.h" |
15 #include "webrtc/common_audio/resampler/push_sinc_resampler.h" | 15 #include "webrtc/common_audio/resampler/push_sinc_resampler.h" |
16 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 16 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
17 #include "webrtc/common_audio/channel_buffer.h" | |
18 #include "webrtc/modules/audio_processing/common.h" | 17 #include "webrtc/modules/audio_processing/common.h" |
| 18 #include "webrtc/rtc_base/checks.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 namespace { | 21 namespace { |
22 | 22 |
23 const size_t kSamplesPer16kHzChannel = 160; | 23 const size_t kSamplesPer16kHzChannel = 160; |
24 const size_t kSamplesPer32kHzChannel = 320; | 24 const size_t kSamplesPer32kHzChannel = 320; |
25 const size_t kSamplesPer48kHzChannel = 480; | 25 const size_t kSamplesPer48kHzChannel = 480; |
26 | 26 |
27 int KeyboardChannelIndex(const StreamConfig& stream_config) { | 27 int KeyboardChannelIndex(const StreamConfig& stream_config) { |
28 if (!stream_config.has_keyboard()) { | 28 if (!stream_config.has_keyboard()) { |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 | 466 |
467 void AudioBuffer::SplitIntoFrequencyBands() { | 467 void AudioBuffer::SplitIntoFrequencyBands() { |
468 splitting_filter_->Analysis(data_.get(), split_data_.get()); | 468 splitting_filter_->Analysis(data_.get(), split_data_.get()); |
469 } | 469 } |
470 | 470 |
471 void AudioBuffer::MergeFrequencyBands() { | 471 void AudioBuffer::MergeFrequencyBands() { |
472 splitting_filter_->Synthesis(split_data_.get(), data_.get()); | 472 splitting_filter_->Synthesis(split_data_.get(), data_.get()); |
473 } | 473 } |
474 | 474 |
475 } // namespace webrtc | 475 } // namespace webrtc |
OLD | NEW |