aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-03 22:19:37 +0100
committerMax Kellermann <max@duempel.org>2009-03-03 22:19:37 +0100
commit1063c1f2e3ac297d0e766f2573ee6459bc31df11 (patch)
treef77893132e4b3cdb54dd45d7f0958de4426f72df /src/output
parent3e5a44546705f149a5ef391e613505413c99d1c1 (diff)
downloadmpd-1063c1f2e3ac297d0e766f2573ee6459bc31df11.tar.gz
mpd-1063c1f2e3ac297d0e766f2573ee6459bc31df11.tar.xz
mpd-1063c1f2e3ac297d0e766f2573ee6459bc31df11.zip
alsa: log period and buffer size
Log the real period and buffer size. This might be useful when debugging xruns. Note that the same information is available in /proc/asound/card*/pcm*p/sub*/hw_params
Diffstat (limited to 'src/output')
-rw-r--r--src/output/alsa_plugin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/output/alsa_plugin.c b/src/output/alsa_plugin.c
index 83df3279f..fb748fdec 100644
--- a/src/output/alsa_plugin.c
+++ b/src/output/alsa_plugin.c
@@ -369,6 +369,9 @@ configure_hw:
if (err < 0)
goto error;
+ g_debug("buffer_size=%u period_size=%u",
+ (unsigned)alsa_buffer_size, (unsigned)alsa_period_size);
+
return true;
error: