fix play vs rec parameters confision

This commit is contained in:
Alexandre Ratchov 2013-06-03 16:15:56 +02:00
parent 6be37c42ee
commit 6c33ab75ef
1 changed files with 4 additions and 2 deletions

View File

@ -607,13 +607,15 @@ sio_alsa_setpar(struct sio_hdl *sh, struct sio_par *par)
if (!(hdl->sio.mode & SIO_PLAY)) { if (!(hdl->sio.mode & SIO_PLAY)) {
ofmt = ifmt; ofmt = ifmt;
orate = irate; orate = irate;
iround = oround; oround = iround;
iperiods = operiods; operiods = iperiods;
} }
} }
DPRINTF("ofmt = %u, orate = %u, oround = %u, operiods = %u\n", DPRINTF("ofmt = %u, orate = %u, oround = %u, operiods = %u\n",
ofmt, orate, (unsigned int)oround, operiods); ofmt, orate, (unsigned int)oround, operiods);
DPRINTF("ifmt = %u, irate = %u, iround = %u, iperiods = %u\n",
ifmt, irate, (unsigned int)iround, iperiods);
if (ifmt != ofmt) { if (ifmt != ofmt) {
DPRINTF("play and rec formats differ\n"); DPRINTF("play and rec formats differ\n");