diff options
author | 2008-11-26 00:33:40 +0000 | |
---|---|---|
committer | 2008-11-26 00:33:40 +0000 | |
commit | 2684a875ea2e393fd40ee5711b23e5d604c7cbb1 (patch) | |
tree | 40f016293ae41b3d10a0b4c48d9a1751286090c5 | |
parent | rework the filling of the rx ring. this switches us to having the cluster (diff) | |
download | wireguard-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.c | 3 |
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; |