summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--media/audio/win/waveout_output_win.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/media/audio/win/waveout_output_win.cc b/media/audio/win/waveout_output_win.cc
index ae0ff54..dbacad0 100644
--- a/media/audio/win/waveout_output_win.cc
+++ b/media/audio/win/waveout_output_win.cc
@@ -77,9 +77,10 @@ bool PCMWaveOutAudioOutputStream::Open(size_t buffer_size) {
reinterpret_cast<DWORD_PTR>(WaveCallback),
reinterpret_cast<DWORD_PTR>(this),
CALLBACK_FUNCTION);
- if (result != MMSYSERR_NOERROR)
+ if (result != MMSYSERR_NOERROR) {
+ fprintf(stderr, "waveOutOpen error %d\n", result);
return false;
-
+ }
// If we don't have a packet size we use 100ms.
if (!buffer_size)
buffer_size = format_.nAvgBytesPerSec / 10;