summaryrefslogtreecommitdiff
path: root/audio/winwaveaudio.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-10-15 02:15:42 +0400
committermalc <av1474@comtv.ru>2009-10-15 02:15:42 +0400
commitbc578fe0075e1de6bd5316adb828685e0d687d5f (patch)
tree0de38864857c84b3a50e610c70143c23da3f0dcb /audio/winwaveaudio.c
parent2a117d401d7f227c5f466834d24c11a2e7cffc00 (diff)
winwave: make error logging more consistent
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/winwaveaudio.c')
-rw-r--r--audio/winwaveaudio.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/audio/winwaveaudio.c b/audio/winwaveaudio.c
index d467c9d04f..bd64a0c4be 100644
--- a/audio/winwaveaudio.c
+++ b/audio/winwaveaudio.c
@@ -92,6 +92,7 @@ static void GCC_FMT_ATTR (2, 3) winwave_logerr (
AUD_vlog (AUDIO_CAP, fmt, ap);
va_end (ap);
+ AUD_log (NULL, " failed\n");
winwave_log_mmresult (mr);
}
@@ -101,7 +102,7 @@ static void winwave_anal_close_out (WaveVoiceOut *wave)
mr = waveOutClose (wave->hwo);
if (mr != MMSYSERR_NOERROR) {
- winwave_logerr (mr, "waveOutClose\n");
+ winwave_logerr (mr, "waveOutClose");
}
wave->hwo = NULL;
}
@@ -167,7 +168,7 @@ static int winwave_init_out (HWVoiceOut *hw, struct audsettings *as)
(DWORD_PTR) winwave_callback,
(DWORD_PTR) wave, CALLBACK_FUNCTION);
if (mr != MMSYSERR_NOERROR) {
- winwave_logerr (mr, "waveOutOpen\n");
+ winwave_logerr (mr, "waveOutOpen");
goto err1;
}
@@ -197,7 +198,7 @@ static int winwave_init_out (HWVoiceOut *hw, struct audsettings *as)
mr = waveOutPrepareHeader (wave->hwo, h, sizeof (*h));
if (mr != MMSYSERR_NOERROR) {
- winwave_logerr (mr, "waveOutPrepareHeader(%d)\n", wave->curhdr);
+ winwave_logerr (mr, "waveOutPrepareHeader(%d)", wave->curhdr);
goto err4;
}
}
@@ -247,7 +248,7 @@ static int winwave_run_out (HWVoiceOut *hw, int live)
h->dwUser = 0;
mr = waveOutWrite (wave->hwo, h, sizeof (*h));
if (mr != MMSYSERR_NOERROR) {
- winwave_logerr (mr, "waveOutWrite(%d)\n", wave->curhdr);
+ winwave_logerr (mr, "waveOutWrite(%d)", wave->curhdr);
break;
}
@@ -272,14 +273,14 @@ static void winwave_fini_out (HWVoiceOut *hw)
mr = waveOutReset (wave->hwo);
if (mr != MMSYSERR_NOERROR) {
- winwave_logerr (mr, "waveOutReset\n");
+ winwave_logerr (mr, "waveOutReset");
}
for (i = 0; i < conf.dac_headers; ++i) {
mr = waveOutUnprepareHeader (wave->hwo, &wave->hdrs[i],
sizeof (wave->hdrs[i]));
if (mr != MMSYSERR_NOERROR) {
- winwave_logerr (mr, "waveOutUnprepareHeader(%d)\n", i);
+ winwave_logerr (mr, "waveOutUnprepareHeader(%d)", i);
}
}