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

Unified Diff: media/audio/win/audio_manager_win.cc

Issue 12155003: Use the correct number of WaveOut buffers on XP... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Useless header. 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_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/audio_manager_win.cc
diff --git a/media/audio/win/audio_manager_win.cc b/media/audio/win/audio_manager_win.cc
index 9b788bf4e77ebb071b9f2b6441ec93e1da6659b4..e62d951d424d80f496003a00f5220f890c13928a 100644
--- a/media/audio/win/audio_manager_win.cc
+++ b/media/audio/win/audio_manager_win.cc
@@ -288,7 +288,8 @@ AudioOutputStream* AudioManagerWin::MakeLowLatencyOutputStream(
if (!CoreAudioUtil::IsSupported()) {
// Fall back to Windows Wave implementation on Windows XP or lower.
DVLOG(1) << "Using WaveOut since WASAPI requires at least Vista.";
- return new PCMWaveOutAudioOutputStream(this, params, 2, WAVE_MAPPER);
+ return new PCMWaveOutAudioOutputStream(
+ this, params, media::NumberOfWaveOutBuffers(), WAVE_MAPPER);
}
// TODO(henrika): remove once we properly handle input device selection.
« no previous file with comments | « media/audio/audio_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698