Commit Graph

55 Commits

Author SHA1 Message Date
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
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
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
217279cb42 add a note about "audioctl encodings", to find available supported encodings. 1999-09-14 05:04:21 +00:00
tron
ac79ed84db Name possible encodings for "-e" option and add an example provided by
Ben Wong in PR bin/8391. Thanks must go to Ross Harvey for helping me
with the "nroff" stuff.
1999-09-13 19:36:30 +00:00
tron
5b011b57a2 Fix broken "-f" and "-P" options. Patches supplied by Ben Wong in
PR bin/8390.
1999-09-13 17:18:21 +00:00
kleink
8731671861 If not specified on the command line, attempt to fall back to the environment
variables AUDIODEVICE (for -d) and AUDIOCTLDEVICE (for -C, already used in
audioctl(1)) before falling back to _PATH_* constants.
1999-07-13 14:02:33 +00:00
jtk
51eba84c2c fix defect where specifying channels would also specify the same string
as the control device (missing 'break')
1999-05-17 02:03:36 +00:00
mrg
dcd2624f5e try using normal read/write is mmap() fails. tell the VM system we are going to be doing sequential access via madvise(). 1999-04-13 07:21:45 +00:00
augustss
fdf4fd888e Fix various buglets. 1999-04-02 16:05:55 +00:00
augustss
2ef8f0cac3 Insert an AUDIO_DRAIN at the end of each file. 1999-03-30 19:33:31 +00:00
mrg
e90ff76184 document new play -f/-s/-P-/c/-e, s/name/named/ from mason in pr#7292. update dates. 1999-03-30 14:48:49 +00:00
mrg
8637d348ae add -f (force) flag to audioplay, plus -s/-P/-c/-e switches for force setting sample rate, precision, channels and encoding. fix some man pages missing .El bits (via veego) 1999-03-28 10:35:05 +00:00