mirror of
https://github.com/ericonr/sndio.git
synced 2024-02-18 04:45:21 -06:00
remove unused
This commit is contained in:
parent
05c5ae3c6a
commit
7fbbfab94a
@ -469,7 +469,7 @@ sio_alsa_xrun(struct sio_alsa_hdl *hdl)
|
|||||||
int clk;
|
int clk;
|
||||||
int wsil, rdrop, cmove;
|
int wsil, rdrop, cmove;
|
||||||
int rbpf, rround;
|
int rbpf, rround;
|
||||||
int wbpf, wround;
|
int wbpf;
|
||||||
|
|
||||||
DPRINTFN(2, "sio_alsa_xrun:\n");
|
DPRINTFN(2, "sio_alsa_xrun:\n");
|
||||||
if (_sndio_debug >= 2)
|
if (_sndio_debug >= 2)
|
||||||
@ -485,10 +485,9 @@ sio_alsa_xrun(struct sio_alsa_hdl *hdl)
|
|||||||
*/
|
*/
|
||||||
rbpf = (hdl->sio.mode & SIO_REC) ?
|
rbpf = (hdl->sio.mode & SIO_REC) ?
|
||||||
hdl->sio.par.bps * hdl->sio.par.rchan : 1;
|
hdl->sio.par.bps * hdl->sio.par.rchan : 1;
|
||||||
rround = hdl->sio.par.round * rbpf;
|
|
||||||
wbpf = (hdl->sio.mode & SIO_PLAY) ?
|
wbpf = (hdl->sio.mode & SIO_PLAY) ?
|
||||||
hdl->sio.par.bps * hdl->sio.par.pchan : 1;
|
hdl->sio.par.bps * hdl->sio.par.pchan : 1;
|
||||||
wround = hdl->sio.par.round * wbpf;
|
rround = hdl->sio.par.round * rbpf;
|
||||||
|
|
||||||
clk = hdl->sio.cpos % hdl->sio.par.round;
|
clk = hdl->sio.cpos % hdl->sio.par.round;
|
||||||
rdrop = (clk * rbpf - hdl->sio.rused) % rround;
|
rdrop = (clk * rbpf - hdl->sio.rused) % rround;
|
||||||
|
Loading…
Reference in New Issue
Block a user