OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AUDIO_PIPELINE_DEVICE_H_ | 5 #ifndef CHROMECAST_PUBLIC_MEDIA_AUDIO_PIPELINE_DEVICE_H_ |
6 #define CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_PIPELINE_DEVICE_H_ | 6 #define CHROMECAST_PUBLIC_MEDIA_AUDIO_PIPELINE_DEVICE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "media_component_device.h" |
9 #include "chromecast/media/cma/backend/media_component_device.h" | |
10 | 9 |
11 namespace chromecast { | 10 namespace chromecast { |
12 namespace media { | 11 namespace media { |
13 class AudioPipelineDeviceClient; | 12 class AudioPipelineDeviceClient; |
14 struct AudioConfig; | 13 struct AudioConfig; |
15 | 14 |
16 class AudioPipelineDevice : public MediaComponentDevice { | 15 class AudioPipelineDevice : public MediaComponentDevice { |
17 public: | 16 public: |
18 AudioPipelineDevice(); | 17 AudioPipelineDevice() {} |
byungchul
2015/07/27 18:22:23
not necessary?
halliwell
2015/07/28 02:19:35
removed.
| |
19 ~AudioPipelineDevice() override; | 18 ~AudioPipelineDevice() override {} |
servolk
2015/07/27 21:25:47
Nit: Have you tried building this on clang? AFAIR
halliwell
2015/07/28 02:19:35
Yes, it builds fine (and meets presubmit checks).
| |
20 | 19 |
21 // Provide the audio configuration. | 20 // Provide the audio configuration. |
22 // Must be called before switching from |kStateUninitialized| to |kStateIdle|. | 21 // Must be called before switching from |kStateUninitialized| to |kStateIdle|. |
23 // Afterwards, this can be invoked any time the configuration changes. | 22 // Afterwards, this can be invoked any time the configuration changes. |
24 // Returns true if the configuration is a supported configuration. | 23 // Returns true if the configuration is a supported configuration. |
25 virtual bool SetConfig(const AudioConfig& config) = 0; | 24 virtual bool SetConfig(const AudioConfig& config) = 0; |
26 | 25 |
27 // Sets the volume multiplier. | 26 // Sets the volume multiplier. |
28 // The multiplier must be in the range [0.0, 1.0]. | 27 // The multiplier must be in the range [0.0, 1.0]. |
29 virtual void SetStreamVolumeMultiplier(float multiplier) = 0; | 28 virtual void SetStreamVolumeMultiplier(float multiplier) = 0; |
30 | |
31 private: | |
32 DISALLOW_COPY_AND_ASSIGN(AudioPipelineDevice); | |
33 }; | 29 }; |
34 | 30 |
35 } // namespace media | 31 } // namespace media |
36 } // namespace chromecast | 32 } // namespace chromecast |
37 | 33 |
38 #endif // CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_PIPELINE_DEVICE_H_ | 34 #endif // CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_PIPELINE_DEVICE_H_ |
OLD | NEW |