From f0f8c69cacb213bba1d464aad77df504d6cad502 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Wed, 26 Sep 2012 22:33:37 +0200 Subject: [PATCH] hide some debug info --- libsndio/sio_alsa.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libsndio/sio_alsa.c b/libsndio/sio_alsa.c index 3d6128c..3d3d9a1 100644 --- a/libsndio/sio_alsa.c +++ b/libsndio/sio_alsa.c @@ -1121,8 +1121,9 @@ sio_alsa_revents(struct sio_hdl *sh, struct pollfd *pfd) while (hdl->odelta > 0) { #ifdef DEBUG hdl->realpos += hdl->odelta; + if (sndio_debug) + sio_alsa_printpos(hdl, hdl->odelta); #endif - sio_alsa_printpos(hdl, hdl->odelta); sio_onmove_cb(&hdl->sio, hdl->odelta); hdl->odelta = 0; } @@ -1141,8 +1142,9 @@ sio_alsa_revents(struct sio_hdl *sh, struct pollfd *pfd) if (hdl->idelta > 0) { #ifdef DEBUG hdl->realpos += hdl->idelta; + if (sndio_debug) + sio_onmove_cb(&hdl->sio, hdl->idelta); #endif - sio_onmove_cb(&hdl->sio, hdl->idelta); hdl->idelta = 0; } }