mirror of https://github.com/ericonr/sndio.git
return actual rchan, rather requested one
This commit is contained in:
parent
35700a7787
commit
3fe3b27ace
|
@ -752,7 +752,7 @@ sio_alsa_setpar(struct sio_hdl *sh, struct sio_par *par)
|
||||||
if (hdl->sio.mode & SIO_REC) {
|
if (hdl->sio.mode & SIO_REC) {
|
||||||
hdl->par.rchan = par->rchan;
|
hdl->par.rchan = par->rchan;
|
||||||
if (!sio_alsa_setpar_hw(hdl->ipcm, ihwp,
|
if (!sio_alsa_setpar_hw(hdl->ipcm, ihwp,
|
||||||
&ifmt, &irate, &par->rchan,
|
&ifmt, &irate, &hdl->par.rchan,
|
||||||
&iround, &iperiods)) {
|
&iround, &iperiods)) {
|
||||||
hdl->sio.eof = 1;
|
hdl->sio.eof = 1;
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -955,7 +955,7 @@ sio_alsa_read(struct sio_hdl *sh, void *buf, size_t len)
|
||||||
hdl->ipartial = hdl->ibpf;
|
hdl->ipartial = hdl->ibpf;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return n *= hdl->ibpf;
|
return n * hdl->ibpf;
|
||||||
}
|
}
|
||||||
|
|
||||||
static size_t
|
static size_t
|
||||||
|
|
Loading…
Reference in New Issue