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_INTERFACE_H_ | |
6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_FILTER_INTERFACE_H_ | |
7 | |
8 #include <stdint.h> | |
9 | |
10 #include "media/base/sample_format.h" | |
11 | |
12 namespace chromecast { | |
13 namespace media { | |
14 | |
15 class AudioFilterInterface { | |
16 public: | |
17 virtual ~AudioFilterInterface() = default; | |
18 virtual bool SetSampleRateAndFormat(int sample_rate, | |
19 ::media::SampleFormat sample_format) = 0; | |
20 | |
21 // Process data frames. Must be interleaved. |data| will be overwritten. | |
22 virtual bool ProcessInterleaved(uint8_t* data, int frames, float volume) = 0; | |
23 }; | |
24 | |
25 } // namespace media | |
26 } // namespace chromecast | |
27 | |
28 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_FILTER_INTERFACE_H_ | |
OLD | NEW |