102 Commits

Author SHA1 Message Date
mrg
85fefefd90 update .Dd 2002-01-25 15:35:32 +00:00
mrg
2d530607f5 add $NetBSD$ 2002-01-25 15:33:51 +00:00
mrg
e7fdf18240 - WARNS=3 (from ross@netbsd.org)
- fix a bug in WAV conversions
2002-01-15 23:48:51 +00:00
wiz
65769c2397 Fix typos. 2002-01-15 17:21:47 +00:00
mrg
78c74d73fd note about WAV sample conversions. 2002-01-15 17:18:28 +00:00
mrg
826ddb01b9 WAV seems to be signed only; convert unsigned samples. 2002-01-15 17:17:13 +00:00
mrg
fa4d70edd0 add a note about RIFF/WAVE support and one about signed/unsigned big/little conversion. 2002-01-15 17:10:06 +00:00
mrg
7aab3ecc6e for sun output files, if we have unsigned or little endian data, convert
it to signed big endian data.  pull in a modified copy of the kernels'
auconv.[ch] to help with this (and remove some home grown code that did
some of the same things.)
2002-01-15 17:02:51 +00:00
mrg
9ab6411c17 sun linear encodings are *signed* 2002-01-15 17:01:33 +00:00
mrg
2b03c0df7a KNF. 2002-01-15 17:00:53 +00:00
mrg
36fef830b3 flush the audio buffer on signals; from Ben Wong <hackerb9@u.washington.edu> in PR#9134 2002-01-15 15:18:11 +00:00
wiz
b02fbc487c Sort SEE ALSO. 2002-01-15 09:21:35 +00:00
mrg
829efa09e1 - add signed linear support to audiorecord's WAV support.
- swap big endian samples for WAV.
- update audioplay(1) and audiorecord(1) audio driver xrefs.

XXX fix support for unsigned linear samples -- it seems they need
to be converted to signed for WAV???
2002-01-15 08:59:20 +00:00
mrg
37188d08c6 - add rudimentary "wav" recording support: don't think it copes with
big-endian systems properly yet -- need to add RIFX support or swap
samples while writing.  more on this coming soon.

- new "-F <format>" option for audiorecord.  supported values of <format>
are "sun", "wav" and "none", plus a few aliases.

- split sun & wav support out into their own files.

- don't assume that WAV header elements are properly aligned for the
type of data they hold.

XXX: still need to clean up libaudio interfaces a lot.
2002-01-15 08:19:36 +00:00
ross
bbd1a97b76 fix regression, err() -> errx() 2002-01-13 04:48:33 +00:00
ross
f0b8f2b291 Rototill play_fd() to fix some original problems and some added later.
Also, fix up for and enable WARNS=2. This fixes problems playing from
pipes or standard input, and playing from funny filesystems or other
cases that can't be mmap(2)ed.
2002-01-13 04:43:18 +00:00
mrg
4a2b3c13ef fix 2001/03/04 change: audio_parse_wav_hdr() returns a signed value. 2002-01-01 08:07:28 +00:00
tv
8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
wiz
2c26591198 Sort sections, sort SEE ALSO, drop trailing '.' in SEE ALSO, use standard
headers.
2001-12-01 17:17:58 +00:00
wiz
c7878e50cb Sort sections, sort SEE ALSO, close quotes in two places. 2001-12-01 17:15:06 +00:00
wiz
aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
wiz
663a1fb2a8 Sort sections, drop some whitespace. 2001-10-17 22:13:04 +00:00
mrg
9a7e97f190 only warn about not writing the sun header once. PR#12809 2001-06-07 12:50:29 +00:00
mrg
3da5c0d664 fix bug in audiorecord -t handling. 2001-06-07 12:48:27 +00:00
wiz
48a36de9c0 Don't give .Os an argument, not even 'NetBSD' (default includes version). 2001-06-05 10:08:03 +00:00
windsor
c834959641 -g for debug, try without when done debugging 2001-05-10 19:07:39 +00:00
wiz
a3cd8f7069 Explain '-c' option. 2001-05-04 23:42:23 +00:00
minoura
399af9e4a8 X68k built-in voice synthesizer supports 4bit ADPCM. 2001-05-02 12:49:41 +00:00
mrg
4ce4608f9f cleanup. including proper fix for previous 2001-03-31 17:33:33 +00:00
pooka
9f88c37d11 add missing chapter number from ym(4) crossreference
Reported by Tetsuya Isaki in bin/12513
2001-03-31 14:19:51 +00:00
simonb
3fa9ceaa88 Fix white space and formatting nits. 2001-03-28 03:18:39 +00:00
ross
3a0778cdc4 lp64/printf 2001-03-08 06:28:14 +00:00
hubertf
d0a42335a9 Don't play trailing garbage at end of RIFF WAVE (.wav) files
Patch sent by YAMAMOTO Takashi <takashi.yamamoto@bigfoot.com> in PR 12328
2001-03-04 15:27:35 +00:00
cgd
a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +00:00
christos
8f3b31ba6f fix nested extern 2001-02-05 01:21:00 +00:00
mrg
d14e283f81 - move the mmap playing code into new play() function
- be more (properly) quiet with `-q'
2001-01-19 14:11:56 +00:00
sommerfeld
64cf1af58d Let src/usr.bin build with recursive parallel make..
- add .WAIT and .NOTPARALLEL in a few places
 - change ${MAKE} print-objdir to ${PRINTOBJDIR}
 - convert other ad-hoc forms to use ${PRINTOBJDIR}
2000-12-30 14:54:39 +00:00
mrg
67312df72f de-__P()-ify 2000-12-22 11:38:42 +00:00
mrg
79a33dbcba libaudio:
- rename audio_get_sun_encoding() to audio_sun_to_encoding()
- add audio_encoding_to_sun()
play.c:
- adapt
record.c:
- convert NetBSD encoding to sun encoding if possible, otherwise don't
output a header at all.
fixes PR#10380 from Michael Eriksson <eramore@era-t.ericsson.se>.
2000-12-13 08:19:54 +00:00
msaitoh
05e625cb7d remove extra period 2000-09-06 20:22:53 +00:00
msaitoh
f6f00e2615 remove extra period in SEE ALL section 2000-07-05 15:45:28 +00:00
mrg
94dde80b07 remove unused crap. 2000-06-18 07:20:15 +00:00
mrg
cfb5b8d545 honour -q (quiet) flag a bit more. 2000-02-27 08:20:01 +00:00
dmcmahill
a0de3d7fa5 When no -e flag is used to specify the encoding, default to "ulaw". This
fixes PR bin/9329.  Thanks to Wolfgang Rupprecht (wolfgang@wsrcc.com)
for filing the PR and identifying the bug.  This change is slightly different
than the one provided in the PR.

Also, document the default encoding in the manpage.

This default is consistent with the default for audiorecord under solaris.
2000-02-02 05:02:25 +00:00
kleink
c9954566b9 When we have to print usage instructions, don't indicate success in the exit
status.
1999-11-08 10:21:20 +00:00
kleink
1447a4671d * Don't treat failure to open a file as fatal error; print a warning to
standard error, arrange for a non-zero exit status and continue with the
  next file.  Addresses PR bin/8748.
* GCC vs. ANSI: a cast doesn't yield an lvalue.
* Use MAP_FAILED.
1999-11-06 15:05:45 +00:00
mrg
4b5ab45441 fix bug introduced in 1.12:
only return a header length of 0 if we are using -f (force), not
in the case when we know how long the header is.  this stops from
playing the audio header.
1999-10-23 04:20:14 +00:00
mrg
cc78535b32 fix off-by-one error in error message array. add a comment. 1999-09-27 05:06:10 +00:00
mrg
86ee174f0b honour -f, even if we appear to have a sun audio file. un-byte-screw the encoding for printing, too. 1999-09-27 05:00:21 +00:00
mrg
b3a888e9cd run forever if no -t is specified, from dan mcmahill 1999-09-27 01:58:07 +00:00