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

Unified Diff: content/renderer/media/audio_device.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/audio_device.h ('k') | content/renderer/media/audio_hardware.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_device.cc
===================================================================
--- content/renderer/media/audio_device.cc (revision 110480)
+++ content/renderer/media/audio_device.cc (working copy)
@@ -233,25 +233,3 @@
buffer_size_);
}
}
-
-double AudioDevice::GetAudioHardwareSampleRate() {
- // Uses cached value if possible.
- static double hardware_sample_rate = 0;
- if (!hardware_sample_rate) {
- RenderThreadImpl::current()->Send(
- new ViewHostMsg_GetHardwareSampleRate(&hardware_sample_rate));
- }
- return hardware_sample_rate;
-}
-
-size_t AudioDevice::GetAudioHardwareBufferSize() {
- // Uses cached value if possible.
- static uint32 buffer_size = 0;
-
- if (!buffer_size) {
- RenderThreadImpl::current()->Send(
- new ViewHostMsg_GetHardwareBufferSize(&buffer_size));
- }
-
- return static_cast<size_t>(buffer_size);
-}
« no previous file with comments | « content/renderer/media/audio_device.h ('k') | content/renderer/media/audio_hardware.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698