OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 const float* keyboard_data() const; | 103 const float* keyboard_data() const; |
104 | 104 |
105 void set_activity(AudioFrame::VADActivity activity); | 105 void set_activity(AudioFrame::VADActivity activity); |
106 AudioFrame::VADActivity activity() const; | 106 AudioFrame::VADActivity activity() const; |
107 | 107 |
108 // Use for int16 interleaved data. | 108 // Use for int16 interleaved data. |
109 void DeinterleaveFrom(AudioFrame* audioFrame); | 109 void DeinterleaveFrom(AudioFrame* audioFrame); |
110 // If |data_changed| is false, only the non-audio data members will be copied | 110 // If |data_changed| is false, only the non-audio data members will be copied |
111 // to |frame|. | 111 // to |frame|. |
112 void InterleaveTo(AudioFrame* frame, bool data_changed) const; | 112 void InterleaveTo(AudioFrame* frame, bool data_changed); |
113 | 113 |
114 // Use for float deinterleaved data. | 114 // Use for float deinterleaved data. |
115 void CopyFrom(const float* const* data, const StreamConfig& stream_config); | 115 void CopyFrom(const float* const* data, const StreamConfig& stream_config); |
116 void CopyTo(const StreamConfig& stream_config, float* const* data); | 116 void CopyTo(const StreamConfig& stream_config, float* const* data); |
117 void CopyLowPassToReference(); | 117 void CopyLowPassToReference(); |
118 | 118 |
119 // Splits the signal into different bands. | 119 // Splits the signal into different bands. |
120 void SplitIntoFrequencyBands(); | 120 void SplitIntoFrequencyBands(); |
121 // Recombine the different bands into one signal. | 121 // Recombine the different bands into one signal. |
122 void MergeFrequencyBands(); | 122 void MergeFrequencyBands(); |
(...skipping 22 matching lines...) Expand all Loading... |
145 bool reference_copied_; | 145 bool reference_copied_; |
146 AudioFrame::VADActivity activity_; | 146 AudioFrame::VADActivity activity_; |
147 | 147 |
148 const float* keyboard_data_; | 148 const float* keyboard_data_; |
149 rtc::scoped_ptr<IFChannelBuffer> data_; | 149 rtc::scoped_ptr<IFChannelBuffer> data_; |
150 rtc::scoped_ptr<IFChannelBuffer> split_data_; | 150 rtc::scoped_ptr<IFChannelBuffer> split_data_; |
151 rtc::scoped_ptr<SplittingFilter> splitting_filter_; | 151 rtc::scoped_ptr<SplittingFilter> splitting_filter_; |
152 rtc::scoped_ptr<ChannelBuffer<int16_t> > mixed_low_pass_channels_; | 152 rtc::scoped_ptr<ChannelBuffer<int16_t> > mixed_low_pass_channels_; |
153 rtc::scoped_ptr<ChannelBuffer<int16_t> > low_pass_reference_channels_; | 153 rtc::scoped_ptr<ChannelBuffer<int16_t> > low_pass_reference_channels_; |
154 rtc::scoped_ptr<IFChannelBuffer> input_buffer_; | 154 rtc::scoped_ptr<IFChannelBuffer> input_buffer_; |
| 155 rtc::scoped_ptr<IFChannelBuffer> output_buffer_; |
155 rtc::scoped_ptr<ChannelBuffer<float> > process_buffer_; | 156 rtc::scoped_ptr<ChannelBuffer<float> > process_buffer_; |
156 ScopedVector<PushSincResampler> input_resamplers_; | 157 ScopedVector<PushSincResampler> input_resamplers_; |
157 ScopedVector<PushSincResampler> output_resamplers_; | 158 ScopedVector<PushSincResampler> output_resamplers_; |
158 }; | 159 }; |
159 | 160 |
160 } // namespace webrtc | 161 } // namespace webrtc |
161 | 162 |
162 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_BUFFER_H_ | 163 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_BUFFER_H_ |
OLD | NEW |