mirror of https://github.com/ericonr/sndio.git
fix play vs rec parameters confision
This commit is contained in:
parent
6be37c42ee
commit
6c33ab75ef
|
@ -607,13 +607,15 @@ sio_alsa_setpar(struct sio_hdl *sh, struct sio_par *par)
|
|||
if (!(hdl->sio.mode & SIO_PLAY)) {
|
||||
ofmt = ifmt;
|
||||
orate = irate;
|
||||
iround = oround;
|
||||
iperiods = operiods;
|
||||
oround = iround;
|
||||
operiods = iperiods;
|
||||
}
|
||||
}
|
||||
|
||||
DPRINTF("ofmt = %u, orate = %u, oround = %u, operiods = %u\n",
|
||||
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) {
|
||||
DPRINTF("play and rec formats differ\n");
|
||||
|
|
Loading…
Reference in New Issue