Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: webrtc/common_audio/resampler/sinusoidal_linear_chirp_source.h

Issue 1174813003: Prepare to convert various types to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix MSVC warning Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 22 matching lines...) Expand all
33 33
34 void Run(int frames, float* destination) override; 34 void Run(int frames, float* destination) override;
35 35
36 double Frequency(int position); 36 double Frequency(int position);
37 37
38 private: 38 private:
39 enum { 39 enum {
40 kMinFrequency = 5 40 kMinFrequency = 5
41 }; 41 };
42 42
43 double sample_rate_; 43 int sample_rate_;
44 int total_samples_; 44 int total_samples_;
45 double max_frequency_; 45 double max_frequency_;
46 double k_; 46 double k_;
47 int current_index_; 47 int current_index_;
48 double delay_samples_; 48 double delay_samples_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(SinusoidalLinearChirpSource); 50 DISALLOW_COPY_AND_ASSIGN(SinusoidalLinearChirpSource);
51 }; 51 };
52 52
53 } // namespace webrtc 53 } // namespace webrtc
54 54
55 #endif // WEBRTC_COMMON_AUDIO_RESAMPLER_SINUSOIDAL_LINEAR_CHIRP_SOURCE_H_ 55 #endif // WEBRTC_COMMON_AUDIO_RESAMPLER_SINUSOIDAL_LINEAR_CHIRP_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698