summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2008-11-26 00:33:40 +0000
committerratchov <ratchov@openbsd.org>2008-11-26 00:33:40 +0000
commit2684a875ea2e393fd40ee5711b23e5d604c7cbb1 (patch)
tree40f016293ae41b3d10a0b4c48d9a1751286090c5
parentrework the filling of the rx ring. this switches us to having the cluster (diff)
downloadwireguard-openbsd-2684a875ea2e393fd40ee5711b23e5d604c7cbb1.tar.xz
wireguard-openbsd-2684a875ea2e393fd40ee5711b23e5d604c7cbb1.zip
when recording .wav files overwrite user supplied parameters with
parameters .wav files format allows (u8, s16le, etc...); a converter is automatically setup. Allows recording .wav files on BE machines with default parameters. idea and help from todd@
-rw-r--r--usr.bin/aucat/wav.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/aucat/wav.c b/usr.bin/aucat/wav.c
index ae85e809f13..042f714f34d 100644
--- a/usr.bin/aucat/wav.c
+++ b/usr.bin/aucat/wav.c
@@ -53,6 +53,9 @@ wav_new_out(struct fileops *ops, int fd, char *name,
f = (struct wav *)pipe_new(ops, fd, name);
if (hdr == HDR_WAV) {
+ par->le = 1;
+ par->sig = (par->bits <= 8) ? 0 : 1;
+ par->bps = (par->bits + 7) / 8;
if (!wav_writehdr(f->pipe.fd, par))
exit(1);
f->hpar = *par;