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

Unified Diff: content/renderer/media/audio_hardware.h

Issue 11880009: Introduce AudioHardwareConfig for renderer side audio device info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style nits. 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 | « content/content_renderer.gypi ('k') | content/renderer/media/audio_hardware.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_hardware.h
diff --git a/content/renderer/media/audio_hardware.h b/content/renderer/media/audio_hardware.h
deleted file mode 100644
index 3171387a5ab09cf496aa11428738533a3f12c5b7..0000000000000000000000000000000000000000
--- a/content/renderer/media/audio_hardware.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2012 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 CONTENT_RENDERER_MEDIA_AUDIO_HARDWARE_H_
-#define CONTENT_RENDERER_MEDIA_AUDIO_HARDWARE_H_
-
-#include "base/basictypes.h"
-#include "content/common/content_export.h"
-#include "media/base/channel_layout.h"
-
-// This file contains static methods to query audio hardware properties from
-// the browser process. Values are cached to avoid unnecessary round trips,
-// but the cache can be cleared if needed (currently only used by tests).
-
-namespace content {
-
-// Fetch the sample rate of the default audio output end point device.
-// Must be called from RenderThreadImpl::current().
-CONTENT_EXPORT int GetAudioOutputSampleRate();
-
-// Fetch the sample rate of the default audio input end point device.
-// Must be called from RenderThreadImpl::current().
-CONTENT_EXPORT int GetAudioInputSampleRate();
-
-// Fetch the buffer size we use for the default output device.
-// Must be called from RenderThreadImpl::current().
-// Must be used in conjunction with AUDIO_PCM_LOW_LATENCY.
-CONTENT_EXPORT size_t GetAudioOutputBufferSize();
-
-// Fetch the audio channel layout for the default input device.
-// Must be called from RenderThreadImpl::current().
-CONTENT_EXPORT media::ChannelLayout GetAudioInputChannelLayout();
-
-// Forces the next call to any of the Get functions to query the hardware
-// and repopulate the cache.
-CONTENT_EXPORT void ResetAudioCache();
-} // namespace content
-
-#endif // CONTENT_RENDERER_MEDIA_AUDIO_HARDWARE_H_
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/media/audio_hardware.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698