OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 const float* source_ptr_; | 61 const float* source_ptr_; |
62 const int16_t* source_ptr_int_; | 62 const int16_t* source_ptr_int_; |
63 const size_t destination_frames_; | 63 const size_t destination_frames_; |
64 | 64 |
65 // True on the first call to Resample(), to prime the SincResampler buffer. | 65 // True on the first call to Resample(), to prime the SincResampler buffer. |
66 bool first_pass_; | 66 bool first_pass_; |
67 | 67 |
68 // Used to assert we are only requested for as much data as is available. | 68 // Used to assert we are only requested for as much data as is available. |
69 size_t source_available_; | 69 size_t source_available_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(PushSincResampler); | 71 RTC_DISALLOW_COPY_AND_ASSIGN(PushSincResampler); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace webrtc | 74 } // namespace webrtc |
75 | 75 |
76 #endif // WEBRTC_COMMON_AUDIO_RESAMPLER_PUSH_SINC_RESAMPLER_H_ | 76 #endif // WEBRTC_COMMON_AUDIO_RESAMPLER_PUSH_SINC_RESAMPLER_H_ |
OLD | NEW |