OLD | NEW |
| (Empty) |
1 // Copyright 2016 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_AUDIO_FILTER_FACTORY_H_ | |
6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_FILTER_FACTORY_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "chromecast/media/cma/backend/alsa/audio_filter_interface.h" | |
11 | |
12 namespace chromecast { | |
13 namespace media { | |
14 | |
15 class AudioFilterFactory { | |
16 public: | |
17 // FilterType specifies the usage of the created filter. | |
18 enum FilterType { | |
19 MEDIA_AUDIO_FILTER = 0, | |
20 TTS_AUDIO_FILTER, | |
21 COMMUNICATION_AUDIO_FILTER, | |
22 ALARM_AUDIO_FILTER, | |
23 }; | |
24 | |
25 // Creates a new AudioFilterInterface. | |
26 static std::unique_ptr<AudioFilterInterface> MakeAudioFilter( | |
27 FilterType filter_type); | |
28 }; | |
29 | |
30 } // namespace media | |
31 } // namespace chromecast | |
32 | |
33 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_FILTER_AUDIO_FILTER_FACTORY_H_ | |
OLD | NEW |