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

Side by Side Diff: chromecast/media/cma/backend/alsa/post_processor_factory.h

Issue 2958393002: Add a simple, safe gain PostProcessor. (Closed)
Patch Set: Unrelated cleanup Created 3 years, 5 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698