aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/alsa.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-08-27 18:12:03 -0700
committerChris Robinson <[email protected]>2012-08-27 22:52:37 -0700
commitf2fa5e7c88c61f029e563ee5de5ff261f0c888f0 (patch)
treeb4128534616a5af3b31d708f72899931ecf30497 /Alc/backends/alsa.c
parent3b735cc34a06da039f3514a0eca244923a8dbea5 (diff)
Print the error when reporting snd_pcm_delay failure
Diffstat (limited to 'Alc/backends/alsa.c')
-rw-r--r--Alc/backends/alsa.c2
1 files changed, 1 insertions, 1 deletions
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);