diff options
author | Alfred E. Heggestad <aeh@db.org> | 2016-09-25 17:50:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-25 17:50:13 +0200 |
commit | b9bdccd0665fa2069f4d9382a36cf13f0a3de9cb (patch) | |
tree | 0f845879383c2011dc251b9ac0485de028b5cd28 /modules | |
parent | 4d7fd88a1943f04833f7fce58bc439e0fca2ae6f (diff) | |
parent | bb9ef7c89ecdc05a88973b060fb8b9722d1f3933 (diff) |
Merge pull request #153 from czarkoff/sndio
sndio: use driver-suggested buffer size
Diffstat (limited to 'modules')
-rw-r--r-- | modules/sndio/sndio.c | 2 |
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) { |