From 1161add0e8c67d6d7b6e1d70c58c99e6343c0c4b Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Thu, 13 Feb 2014 16:39:42 +0100 Subject: [PATCH] use save parameters instead of calling getpar() --- libsndio/sio_aucat.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/libsndio/sio_aucat.c b/libsndio/sio_aucat.c index f5f22fb..0813fed 100644 --- a/libsndio/sio_aucat.c +++ b/libsndio/sio_aucat.c @@ -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);