From f2fa5e7c88c61f029e563ee5de5ff261f0c888f0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 27 Aug 2012 18:12:03 -0700 Subject: Print the error when reporting snd_pcm_delay failure --- Alc/backends/alsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc') diff --git a/Alc/backends/alsa.c b/Alc/backends/alsa.c index d780942e..b4bf83c7 100644 --- a/Alc/backends/alsa.c +++ b/Alc/backends/alsa.c @@ -1259,7 +1259,7 @@ static ALint64 alsa_get_latency(ALCdevice *device) if((err=snd_pcm_delay(data->pcmHandle, &delay)) < 0) { - ERR("Failed to get latency!\n"); + ERR("Failed to get pcm delay: %s\n", snd_strerror(err)); return 0; } return maxi64((ALint64)delay*1000000000/device->Frequency, 0); -- cgit v1.2.3