ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / chromecast / media / cma / backend / audio_pipeline_device.h
blob932a807ac60e4f2a9d9131eda26ec3676e79b249
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
3 // found in the LICENSE file.
5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_PIPELINE_DEVICE_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_PIPELINE_DEVICE_H_
8 #include "base/macros.h"
9 #include "chromecast/media/cma/backend/media_component_device.h"
11 namespace media {
12 class AudioDecoderConfig;
15 namespace chromecast {
16 namespace media {
17 class AudioPipelineDeviceClient;
19 class AudioPipelineDevice : public MediaComponentDevice {
20 public:
21 AudioPipelineDevice();
22 ~AudioPipelineDevice() override;
24 // Provide the audio configuration.
25 // Must be called before switching from |kStateUninitialized| to |kStateIdle|.
26 // Afterwards, this can be invoked any time the configuration changes.
27 // Returns true if the configuration is a supported configuration.
28 virtual bool SetConfig(const ::media::AudioDecoderConfig& config) = 0;
30 // Sets the volume multiplier.
31 // The multiplier must be in the range [0.0, 1.0].
32 virtual void SetStreamVolumeMultiplier(float multiplier) = 0;
34 private:
35 DISALLOW_COPY_AND_ASSIGN(AudioPipelineDevice);
38 } // namespace media
39 } // namespace chromecast
41 #endif // CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_PIPELINE_DEVICE_H_