| OLD | NEW |
| 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 Loading... |
| 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__ |
| OLD | NEW |