1
0
mirror of https://github.com/ericonr/sndio.git synced 2024-02-18 04:45:21 -06:00

hide some debug info

This commit is contained in:
Alexandre Ratchov 2012-09-26 22:33:37 +02:00
parent b7f6f22883
commit f0f8c69cac

View File

@ -1121,8 +1121,9 @@ sio_alsa_revents(struct sio_hdl *sh, struct pollfd *pfd)
while (hdl->odelta > 0) { while (hdl->odelta > 0) {
#ifdef DEBUG #ifdef DEBUG
hdl->realpos += hdl->odelta; hdl->realpos += hdl->odelta;
#endif if (sndio_debug)
sio_alsa_printpos(hdl, hdl->odelta); sio_alsa_printpos(hdl, hdl->odelta);
#endif
sio_onmove_cb(&hdl->sio, hdl->odelta); sio_onmove_cb(&hdl->sio, hdl->odelta);
hdl->odelta = 0; hdl->odelta = 0;
} }
@ -1141,8 +1142,9 @@ sio_alsa_revents(struct sio_hdl *sh, struct pollfd *pfd)
if (hdl->idelta > 0) { if (hdl->idelta > 0) {
#ifdef DEBUG #ifdef DEBUG
hdl->realpos += hdl->idelta; hdl->realpos += hdl->idelta;
#endif if (sndio_debug)
sio_onmove_cb(&hdl->sio, hdl->idelta); sio_onmove_cb(&hdl->sio, hdl->idelta);
#endif
hdl->idelta = 0; hdl->idelta = 0;
} }
} }