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

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

Issue 2738873002: [Chromecast] Implement new volume control API (Closed)
Patch Set: slan comments Created 3 years, 9 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
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_
OLDNEW
« no previous file with comments | « chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc ('k') | chromecast/media/cma/backend/alsa/filter_group.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698