dont dump stream state if debugging isn't enabled

This commit is contained in:
Alexandre Ratchov 2012-09-27 10:40:11 +02:00
parent f0f8c69cac
commit 8c5a080731
1 changed files with 8 additions and 4 deletions

View File

@ -373,10 +373,14 @@ sio_alsa_start(struct sio_hdl *sh)
return 0;
}
}
if (hdl->sio.mode & SIO_REC)
snd_pcm_dump(hdl->ipcm, output);
if (hdl->sio.mode & SIO_PLAY)
snd_pcm_dump(hdl->opcm, output);
#ifdef DEBUG
if (sndio_debug > 1) {
if (hdl->sio.mode & SIO_REC)
snd_pcm_dump(hdl->ipcm, output);
if (hdl->sio.mode & SIO_PLAY)
snd_pcm_dump(hdl->opcm, output);
}
#endif
return 1;
}