| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_FILTER_INTERFACE_H_ | 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_FILTER_INTERFACE_H_ |
| 6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_FILTER_INTERFACE_H_ | 6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_FILTER_INTERFACE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "media/base/sample_format.h" | 10 #include "media/base/sample_format.h" |
| 11 | 11 |
| 12 namespace chromecast { | 12 namespace chromecast { |
| 13 namespace media { | 13 namespace media { |
| 14 | 14 |
| 15 class AudioFilterInterface { | 15 class AudioFilterInterface { |
| 16 public: | 16 public: |
| 17 virtual ~AudioFilterInterface() = default; | 17 virtual ~AudioFilterInterface() = default; |
| 18 virtual bool SetSampleRateAndFormat(int sample_rate, | 18 virtual bool SetSampleRateAndFormat(int sample_rate, |
| 19 ::media::SampleFormat sample_format) = 0; | 19 ::media::SampleFormat sample_format) = 0; |
| 20 | 20 |
| 21 // Process data frames. Must be interleaved. |data| will be overwritten. | 21 // Process data frames. Must be interleaved. |data| will be overwritten. |
| 22 virtual bool ProcessInterleaved(uint8_t* data, int frames) = 0; | 22 virtual bool ProcessInterleaved(uint8_t* data, int frames, float volume) = 0; |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 } // namespace media | 25 } // namespace media |
| 26 } // namespace chromecast | 26 } // namespace chromecast |
| 27 | 27 |
| 28 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_FILTER_INTERFACE_H_ | 28 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_FILTER_INTERFACE_H_ |
| OLD | NEW |