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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 // Dependency injection for testing. Don't delete |agc| as the memory is owned | 49 // Dependency injection for testing. Don't delete |agc| as the memory is owned |
50 // by the manager. | 50 // by the manager. |
51 AgcManagerDirect(Agc* agc, | 51 AgcManagerDirect(Agc* agc, |
52 GainControl* gctrl, | 52 GainControl* gctrl, |
53 VolumeCallbacks* volume_callbacks, | 53 VolumeCallbacks* volume_callbacks, |
54 int startup_min_level); | 54 int startup_min_level); |
55 ~AgcManagerDirect(); | 55 ~AgcManagerDirect(); |
56 | 56 |
57 int Initialize(); | 57 int Initialize(); |
58 void AnalyzePreProcess(int16_t* audio, | 58 void AnalyzePreProcess(int16_t* audio, |
59 int num_channels, | 59 int num_channels, |
Andrew MacDonald
2015/07/24 04:01:43
You've used size_t for num_channels elsewhere.
Peter Kasting
2015/07/24 06:44:22
Not in this CL, at least as far as I'm aware. I d
Andrew MacDonald
2015/07/24 19:07:13
Understood, thanks.
| |
60 int samples_per_channel); | 60 size_t samples_per_channel); |
61 void Process(const int16_t* audio, int length, int sample_rate_hz); | 61 void Process(const int16_t* audio, size_t length, int sample_rate_hz); |
62 | 62 |
63 // Sets a new microphone level, after first checking that it hasn't been | 63 // Sets a new microphone level, after first checking that it hasn't been |
64 // updated by the user, in which case no action is taken. | 64 // updated by the user, in which case no action is taken. |
65 void SetLevel(int new_level); | 65 void SetLevel(int new_level); |
66 | 66 |
67 // Set the maximum level the AGC is allowed to apply. Also updates the | 67 // Set the maximum level the AGC is allowed to apply. Also updates the |
68 // maximum compression gain to compensate. The level must be at least | 68 // maximum compression gain to compensate. The level must be at least |
69 // |kClippedLevelMin|. | 69 // |kClippedLevelMin|. |
70 void SetMaxLevel(int level); | 70 void SetMaxLevel(int level); |
71 | 71 |
(...skipping 23 matching lines...) Expand all Loading... | |
95 bool startup_; | 95 bool startup_; |
96 int startup_min_level_; | 96 int startup_min_level_; |
97 | 97 |
98 rtc::scoped_ptr<DebugFile> file_preproc_; | 98 rtc::scoped_ptr<DebugFile> file_preproc_; |
99 rtc::scoped_ptr<DebugFile> file_postproc_; | 99 rtc::scoped_ptr<DebugFile> file_postproc_; |
100 }; | 100 }; |
101 | 101 |
102 } // namespace webrtc | 102 } // namespace webrtc |
103 | 103 |
104 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC_AGC_MANAGER_DIRECT_H_ | 104 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC_AGC_MANAGER_DIRECT_H_ |
OLD | NEW |