Commit Graph

69 Commits

Author SHA1 Message Date
wiz
7072bc9c3f Use better reference after sorting in -f description. 2010-12-29 18:48:56 +00:00
wiz
29bd138c93 Sort usage. 2010-12-29 18:48:40 +00:00
wiz
825164c33e Sort some more. 2010-12-29 18:46:48 +00:00
jmcneill
94f6c5770b allow for buffer sizes < 32k 2010-12-29 14:38:54 +00:00
mrg
ebcfca8be3 add a new "-B buffersize" flag to both audioplay and audiorecord.
suggested by jmcneill@.

sort audioplay manual some.
2010-12-29 13:09:03 +00:00
lukem
c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00
lukem
31582cc99b fix -Wsign-compare and other WARNS=4 issues 2009-04-11 10:43:09 +00:00
mrg
c2b95373bf remove clause #3 from my license where there are no other
copyright holders involved.
2008-05-29 14:51:25 +00:00
perry
8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
lukem
5d427989ff Convert to raise_default_signal(3). 2007-10-05 07:27:41 +00:00
christos
d257792f4a Coverity CID 3187: Fix memory leak 2006-05-23 01:07:16 +00:00
mrg
a3d57ef1bd play.c: allow empty files to exit gracefully rather than with an error
of "header seems really large".  reported by wiz.

record.c: don't use total_size in the header if is -1 (it's initial value)
2005-07-13 10:57:11 +00:00
lukem
658ed3362c appease gcc -Wuninitialized 2005-06-02 01:35:57 +00:00
wiz
7f968efdc2 There is no -m option -- remove it from the usage.
From Kouichirou Hiratsuka in PR 26192.
2004-07-09 11:34:16 +00:00
agc
c0db2196e7 Add NetBSD RCS Ids. 2003-06-23 12:15:00 +00:00
perry
9f3d802514 audiofiles -> audio files 2003-03-31 02:40:25 +00:00
mrg
e7e34e98bb fix an error message 2002-12-08 10:49:22 +00:00
mrg
c7cd1b33d0 fix PR#18909, but not quite exactly the same as the patch provided. also,
check if the filesize causes a size_t overflow and if so, use the fallback
read/write loop method.
2002-11-04 12:04:23 +00:00
wiz
9a746b1751 Move close so that last ioctl is before close call.
Fix duplicate word in comment.
Based on patch from Christian Biere in PR 18902, with a style nit fixed.
2002-11-03 19:35:00 +00:00
wiz
e1ec03904e New sentence, new line. Use Aq/An. 2002-10-13 01:06:42 +00:00
mrg
88f885d72e print the file name in verbose mode as well. avoid printing (null) for encoding. 2002-10-01 20:22:10 +00:00
grant
eda9e509bb sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:40:16 +00:00
augustss
957cbd212d Update man pages to reflect the use of /dev/sound instead of /dev/audio. 2002-02-26 00:15:57 +00:00
mrg
9f1df20b86 define: datasize == 0 means use the whole file. fixes part of PR#12809. 2002-02-10 13:15:08 +00:00
ross
2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
augustss
b5d25cc57f Test for default device in a portable way. Thanks to Michael Ericsson
for spotting the problem.
2002-02-05 00:17:26 +00:00
jdolecek
ef0bbb2a55 Retire -C, do all the ioctls on same audio device we do i/o 2002-02-02 20:20:23 +00:00
augustss
adeb3ad736 Actually be verbose if the -V flag is given. 2002-01-31 00:33:10 +00:00
augustss
d1c426fe38 Use _PATH_SOUND etc, all fall back to _PATH_SOUND0 (etc.) if that fails. 2002-01-31 00:03:23 +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
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
48a36de9c0 Don't give .Os an argument, not even 'NetBSD' (default includes version). 2001-06-05 10:08:03 +00:00
minoura
399af9e4a8 X68k built-in voice synthesizer supports 4bit ADPCM. 2001-05-02 12:49:41 +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
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
f6f00e2615 remove extra period in SEE ALL section 2000-07-05 15:45:28 +00:00
mrg
cfb5b8d545 honour -q (quiet) flag a bit more. 2000-02-27 08:20:01 +00:00