mirror of
https://github.com/ericonr/sndio.git
synced 2024-02-18 04:45:21 -06:00
use save parameters instead of calling getpar()
This commit is contained in:
parent
7fbbfab94a
commit
1161add0e8
@ -181,17 +181,11 @@ static int
|
||||
sio_aucat_start(struct sio_hdl *sh)
|
||||
{
|
||||
struct sio_aucat_hdl *hdl = (struct sio_aucat_hdl *)sh;
|
||||
struct sio_par par;
|
||||
|
||||
/*
|
||||
* save bpf
|
||||
*/
|
||||
if (!sio_getpar(&hdl->sio, &par))
|
||||
return 0;
|
||||
hdl->wbpf = par.bps * par.pchan;
|
||||
hdl->rbpf = par.bps * par.rchan;
|
||||
hdl->wbpf = hdl->sio.par.bps * hdl->sio.par.pchan;
|
||||
hdl->rbpf = hdl->sio.par.bps * hdl->sio.par.rchan;
|
||||
hdl->aucat.maxwrite = 0;
|
||||
hdl->round = par.round;
|
||||
hdl->round = hdl->sio.par.round;
|
||||
hdl->delta = 0;
|
||||
DPRINTFN(2, "aucat: start, maxwrite = %d\n", hdl->aucat.maxwrite);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user