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

Side by Side Diff: webrtc/modules/audio_processing/agc/agc_manager_direct.h

Issue 1227213002: Update audio code to use size_t more correctly, webrtc/modules/audio_processing/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 4 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
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
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_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/agc/agc.cc ('k') | webrtc/modules/audio_processing/agc/agc_manager_direct.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698