diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-09-30 09:14:45 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-09-30 09:14:45 +0000 |
commit | 7108a61b3b567785ac050c57e8db6c9707124b7c (patch) | |
tree | df3eac8c14eb4663cf2e0ad009aab8fb82b1616e /usr.bin/aucat/aucat.c | |
parent | 4d2cdee03ff5d06c9e61f21e8c140b7b7e68c81b (diff) |
Set the device rate to the calculated rate. Otherwise, the signal
may endup resampled twice.
Diffstat (limited to 'usr.bin/aucat/aucat.c')
-rw-r--r-- | usr.bin/aucat/aucat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c index 020b185769b..f262d68090d 100644 --- a/usr.bin/aucat/aucat.c +++ b/usr.bin/aucat/aucat.c @@ -662,6 +662,7 @@ dev_open(char *dev, int mode, int bufsz, char *port) par.bps = sizeof(adata_t); par.msb = 0; par.le = SIO_LE_NATIVE; + par.rate = rate; if (mode & SIO_PLAY) par.pchan = pmax + 1; if (mode & SIO_REC) |