diff options
author | Chris Robinson <[email protected]> | 2012-08-27 18:12:03 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-08-27 22:52:37 -0700 |
commit | f2fa5e7c88c61f029e563ee5de5ff261f0c888f0 (patch) | |
tree | b4128534616a5af3b31d708f72899931ecf30497 /Alc/backends/alsa.c | |
parent | 3b735cc34a06da039f3514a0eca244923a8dbea5 (diff) |
Print the error when reporting snd_pcm_delay failure
Diffstat (limited to 'Alc/backends/alsa.c')
-rw-r--r-- | Alc/backends/alsa.c | 2 |
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); |