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

Unified Diff: chromecast/public/media/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: DCHECK on posted task Created 5 years, 5 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/public/media/audio_pipeline_device.h
diff --git a/chromecast/media/cma/backend/audio_pipeline_device.h b/chromecast/public/media/audio_pipeline_device.h
similarity index 60%
rename from chromecast/media/cma/backend/audio_pipeline_device.h
rename to chromecast/public/media/audio_pipeline_device.h
index 84c1af1fe1d9c1fb42bfe3db3a514b25f5eba4a5..02fadeba2045f9acd27b5082fc58ab74a742e3d2 100644
--- a/chromecast/media/cma/backend/audio_pipeline_device.h
+++ b/chromecast/public/media/audio_pipeline_device.h
@@ -2,34 +2,31 @@
// 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_
+#ifndef CHROMECAST_PUBLIC_MEDIA_AUDIO_PIPELINE_DEVICE_H_
+#define CHROMECAST_PUBLIC_MEDIA_AUDIO_PIPELINE_DEVICE_H_
-#include "base/macros.h"
-#include "chromecast/media/cma/backend/media_component_device.h"
+#include "media_component_device.h"
namespace chromecast {
namespace media {
class AudioPipelineDeviceClient;
struct AudioConfig;
+// Interface for platform-specific audio pipeline backend.
+// See comments on MediaComponentDevice.
class AudioPipelineDevice : public MediaComponentDevice {
public:
- AudioPipelineDevice();
- ~AudioPipelineDevice() override;
+ ~AudioPipelineDevice() override {}
- // Provide the audio configuration.
- // Must be called before switching from |kStateUninitialized| to |kStateIdle|.
+ // Provides the audio configuration.
+ // Will 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 AudioConfig& config) = 0;
// Sets the volume multiplier.
- // The multiplier must be in the range [0.0, 1.0].
+ // The multiplier is in the range [0.0, 1.0].
virtual void SetStreamVolumeMultiplier(float multiplier) = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(AudioPipelineDevice);
};
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698