summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/sndio/sndio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sndio/sndio.c b/modules/sndio/sndio.c
index 69c4b27..b20efe0 100644
--- a/modules/sndio/sndio.c
+++ b/modules/sndio/sndio.c
@@ -186,7 +186,7 @@ static int src_alloc(struct ausrc_st **stp, const struct ausrc *as,
goto out;
}
- st->sampc = prm->srate * prm->ch * prm->ptime / 1000;
+ st->sampc = par->bufsz / 2;
st->sampv = mem_alloc(2 * st->sampc, NULL);
if (!st->sampv) {