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

Side by Side Diff: chromecast/media/cma/backend/audio_pipeline_device.h

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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
(Empty)
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.
4
5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_PIPELINE_DEVICE_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_PIPELINE_DEVICE_H_
7
8 #include "base/macros.h"
9 #include "chromecast/media/cma/backend/media_component_device.h"
10
11 namespace chromecast {
12 namespace media {
13 class AudioPipelineDeviceClient;
14 struct AudioConfig;
15
16 class AudioPipelineDevice : public MediaComponentDevice {
17 public:
18 AudioPipelineDevice();
19 ~AudioPipelineDevice() override;
20
21 // Provide the audio configuration.
22 // Must be called before switching from |kStateUninitialized| to |kStateIdle|.
23 // Afterwards, this can be invoked any time the configuration changes.
24 // Returns true if the configuration is a supported configuration.
25 virtual bool SetConfig(const AudioConfig& config) = 0;
26
27 // Sets the volume multiplier.
28 // The multiplier must be in the range [0.0, 1.0].
29 virtual void SetStreamVolumeMultiplier(float multiplier) = 0;
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(AudioPipelineDevice);
33 };
34
35 } // namespace media
36 } // namespace chromecast
37
38 #endif // CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_PIPELINE_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698