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

Unified Diff: chromecast/media/cma/backend/audio_pipeline_device.h

Issue 622853002: Chromecast: adds interfaces for hardware layer of CMA pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cma-decrypt-context
Patch Set: damien comments Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/media/cma/backend/audio_pipeline_device.h
diff --git a/chromecast/media/cma/backend/audio_pipeline_device.h b/chromecast/media/cma/backend/audio_pipeline_device.h
new file mode 100644
index 0000000000000000000000000000000000000000..3fbf5731dbe5e165491775b41a2e62ca1d9027e3
--- /dev/null
+++ b/chromecast/media/cma/backend/audio_pipeline_device.h
@@ -0,0 +1,41 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_PIPELINE_DEVICE_H_
+#define CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_PIPELINE_DEVICE_H_
+
+#include "base/macros.h"
+#include "chromecast/media/cma/backend/media_component_device.h"
+
+namespace media {
+class AudioDecoderConfig;
+}
+
+namespace chromecast {
+namespace media {
+class AudioPipelineDeviceClient;
+
+class AudioPipelineDevice : public MediaComponentDevice {
+ public:
+ AudioPipelineDevice();
+ virtual ~AudioPipelineDevice();
+
+ // Provide the audio configuration.
+ // Must be called before switching from |kStateUninitialized| to |kStateIdle|.
+ // Afterwards, this can be invoked any time the configuration changes.
+ // Returns true if the configuration is a supported configuration.
+ virtual bool SetConfig(const ::media::AudioDecoderConfig& config) = 0;
+
+ // Sets the volume multiplier.
+ // The multiplier must be in the range [0.0, 1.0].
+ virtual void SetStreamVolumeMultiplier(float multiplier) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AudioPipelineDevice);
+};
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_PIPELINE_DEVICE_H_
« no previous file with comments | « chromecast/media/base/decrypt_context_clearkey.h ('k') | chromecast/media/cma/backend/audio_pipeline_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698