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

Unified Diff: media/base/audio_hardware_config.h

Issue 12102004: Renderer side audio device change wip... Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « media/audio/audio_output_ipc.h ('k') | media/base/audio_renderer_mixer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_hardware_config.h
diff --git a/media/base/audio_hardware_config.h b/media/base/audio_hardware_config.h
new file mode 100644
index 0000000000000000000000000000000000000000..08668215614e4ac4754979e469e059f850e8809b
--- /dev/null
+++ b/media/base/audio_hardware_config.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2013 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 MEDIA_BASE_AUDIO_HARDWARE_CONFIG_H_
+#define MEDIA_BASE_AUDIO_HARDWARE_CONFIG_H_
+
+#include "media/base/channel_layout.h"
+#include "media/base/media_export.h"
+
+namespace media {
+
+// Interface for providing access to the audio hardware configuration from the
+// renderer side. Browser side clients should query the methods in audio_util
+// directly.
+class MEDIA_EXPORT AudioHardwareConfig {
+ public:
+ // Accessors for the currently cached hardware configuration.
+ virtual int GetOutputBufferSize() = 0;
+ virtual int GetOutputSampleRate() = 0;
+ virtual int GetInputSampleRate() = 0;
+ virtual ChannelLayout GetInputChannelLayout() = 0;
+
+ protected:
+ virtual ~AudioHardwareConfig() {}
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_AUDIO_HARDWARE_CONFIG_H_
« no previous file with comments | « media/audio/audio_output_ipc.h ('k') | media/base/audio_renderer_mixer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698