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

Side by Side Diff: webrtc/modules/audio_processing/processing_component.h

Issue 1316523002: Convert channel counts to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix compile Created 4 years, 11 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 29 matching lines...) Expand all
40 40
41 virtual int Initialize(); 41 virtual int Initialize();
42 virtual void SetExtraOptions(const Config& config) {} 42 virtual void SetExtraOptions(const Config& config) {}
43 virtual int Destroy(); 43 virtual int Destroy();
44 44
45 bool is_component_enabled() const; 45 bool is_component_enabled() const;
46 46
47 protected: 47 protected:
48 virtual int Configure(); 48 virtual int Configure();
49 int EnableComponent(bool enable); 49 int EnableComponent(bool enable);
50 void* handle(int index) const; 50 void* handle(size_t index) const;
51 int num_handles() const; 51 size_t num_handles() const;
52 52
53 private: 53 private:
54 virtual void* CreateHandle() const = 0; 54 virtual void* CreateHandle() const = 0;
55 virtual int InitializeHandle(void* handle) const = 0; 55 virtual int InitializeHandle(void* handle) const = 0;
56 virtual int ConfigureHandle(void* handle) const = 0; 56 virtual int ConfigureHandle(void* handle) const = 0;
57 virtual void DestroyHandle(void* handle) const = 0; 57 virtual void DestroyHandle(void* handle) const = 0;
58 virtual int num_handles_required() const = 0; 58 virtual size_t num_handles_required() const = 0;
59 virtual int GetHandleError(void* handle) const = 0; 59 virtual int GetHandleError(void* handle) const = 0;
60 60
61 std::vector<void*> handles_; 61 std::vector<void*> handles_;
62 bool initialized_; 62 bool initialized_;
63 bool enabled_; 63 bool enabled_;
64 int num_handles_; 64 size_t num_handles_;
65 }; 65 };
66 66
67 } // namespace webrtc 67 } // namespace webrtc
68 68
69 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_PROCESSING_COMPONENT_H__ 69 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_PROCESSING_COMPONENT_H__
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/noise_suppression_impl.cc ('k') | webrtc/modules/audio_processing/processing_component.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698