| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 const float* keyboard_data() const; | 104 const float* keyboard_data() const; |
| 105 | 105 |
| 106 void set_activity(AudioFrame::VADActivity activity); | 106 void set_activity(AudioFrame::VADActivity activity); |
| 107 AudioFrame::VADActivity activity() const; | 107 AudioFrame::VADActivity activity() const; |
| 108 | 108 |
| 109 // Use for int16 interleaved data. | 109 // Use for int16 interleaved data. |
| 110 void DeinterleaveFrom(AudioFrame* audioFrame); | 110 void DeinterleaveFrom(AudioFrame* audioFrame); |
| 111 // If |data_changed| is false, only the non-audio data members will be copied | 111 // If |data_changed| is false, only the non-audio data members will be copied |
| 112 // to |frame|. | 112 // to |frame|. |
| 113 void InterleaveTo(AudioFrame* frame, bool data_changed); | 113 void InterleaveTo(AudioFrame* frame, bool data_changed) const; |
| 114 | 114 |
| 115 // Use for float deinterleaved data. | 115 // Use for float deinterleaved data. |
| 116 void CopyFrom(const float* const* data, const StreamConfig& stream_config); | 116 void CopyFrom(const float* const* data, const StreamConfig& stream_config); |
| 117 void CopyTo(const StreamConfig& stream_config, float* const* data); | 117 void CopyTo(const StreamConfig& stream_config, float* const* data); |
| 118 void CopyLowPassToReference(); | 118 void CopyLowPassToReference(); |
| 119 | 119 |
| 120 // Splits the signal into different bands. | 120 // Splits the signal into different bands. |
| 121 void SplitIntoFrequencyBands(); | 121 void SplitIntoFrequencyBands(); |
| 122 // Recombine the different bands into one signal. | 122 // Recombine the different bands into one signal. |
| 123 void MergeFrequencyBands(); | 123 void MergeFrequencyBands(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 std::unique_ptr<IFChannelBuffer> input_buffer_; | 157 std::unique_ptr<IFChannelBuffer> input_buffer_; |
| 158 std::unique_ptr<IFChannelBuffer> output_buffer_; | 158 std::unique_ptr<IFChannelBuffer> output_buffer_; |
| 159 std::unique_ptr<ChannelBuffer<float> > process_buffer_; | 159 std::unique_ptr<ChannelBuffer<float> > process_buffer_; |
| 160 std::vector<std::unique_ptr<PushSincResampler>> input_resamplers_; | 160 std::vector<std::unique_ptr<PushSincResampler>> input_resamplers_; |
| 161 std::vector<std::unique_ptr<PushSincResampler>> output_resamplers_; | 161 std::vector<std::unique_ptr<PushSincResampler>> output_resamplers_; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace webrtc | 164 } // namespace webrtc |
| 165 | 165 |
| 166 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_BUFFER_H_ | 166 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_BUFFER_H_ |
| OLD | NEW |