OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_POST_PROCESSOR_FACTORY_H_ |
| 6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_POST_PROCESSOR_FACTORY_H_ |
| 7 |
| 8 #include <memory> |
| 9 #include <string> |
| 10 #include <vector> |
| 11 |
| 12 #include "base/macros.h" |
| 13 |
| 14 namespace base { |
| 15 class ScopedNativeLibrary; |
| 16 } // namespace base |
| 17 |
| 18 namespace chromecast { |
| 19 namespace media { |
| 20 |
| 21 class AudioPostProcessor; |
| 22 |
| 23 class PostProcessorFactory { |
| 24 public: |
| 25 PostProcessorFactory(); |
| 26 ~PostProcessorFactory(); |
| 27 |
| 28 std::unique_ptr<AudioPostProcessor> CreatePostProcessor( |
| 29 const std::string& so_name, |
| 30 const std::string& config, |
| 31 int channels); |
| 32 |
| 33 private: |
| 34 // Contains all libraries in use; |
| 35 // Functions in shared objects cannot be used once library is closed. |
| 36 std::vector<std::unique_ptr<base::ScopedNativeLibrary>> libraries_; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(PostProcessorFactory); |
| 39 }; |
| 40 |
| 41 } // namespace media |
| 42 } // namespace chromecast |
| 43 |
| 44 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_POST_PROCESSOR_FACTORY_H_ |
OLD | NEW |