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

Side by Side Diff: content/renderer/media/audio_hardware.h

Issue 8588030: Refactor the Get*Hardware* routines a bit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/media/audio_device.cc ('k') | content/renderer/media/audio_hardware.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 CONTENT_RENDERER_MEDIA_AUDIO_HARDWARE_H_
6 #define CONTENT_RENDERER_MEDIA_AUDIO_HARDWARE_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "content/common/content_export.h"
11
12 // Contains static methods to query hardware properties from the browser
13 // process. Values are cached to avoid unnecessary round trips, but the cache
14 // can be cleared if needed (currently only used by tests).
15 namespace audio_hardware {
16
17 // Fetch the sample rate of the default audio output end point device.
18 // Must be called from RenderThreadImpl::current().
19 CONTENT_EXPORT double GetOutputSampleRate();
20
21 // Fetch the sample rate of the default audio input end point device.
22 // Must be called from RenderThreadImpl::current().
23 CONTENT_EXPORT double GetInputSampleRate();
24
25 // Fetch the buffer size we use for the default output device.
26 // Must be called from RenderThreadImpl::current().
27 CONTENT_EXPORT size_t GetOutputBufferSize();
28
29 // Forces the next call to any of the Get functions to query the hardware
30 // and repopulate the cache.
31 CONTENT_EXPORT void ResetCache();
32 };
scherkus (not reviewing) 2011/11/17 19:24:34 nit: namespaces should end w/o semicolon as well a
tommi (sloooow) - chröme 2011/11/18 13:51:33 done. (copy/paste oversight since this started ou
33
34 #endif // CONTENT_RENDERER_MEDIA_AUDIO_HARDWARE_H_
OLDNEW
« no previous file with comments | « content/renderer/media/audio_device.cc ('k') | content/renderer/media/audio_hardware.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698