Commit Graph

155 Commits

Author SHA1 Message Date
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
mrg 8ce77e5534 move some more processing before opening the audio device. don't
default the encoding to ulaw; default it to what ever the device
has.  the latter fixes PR#30612.
2005-07-05 22:01:42 +00:00
mrg 906f130f1a check that an output file is given before doing any other work.
avoids touching the audio device and then printing an error.
2005-07-05 21:05:50 +00:00
lukem 658ed3362c appease gcc -Wuninitialized 2005-06-02 01:35:57 +00:00
dsl 8383dcf78c Add (unsigned char) cast to ctype functions 2004-10-30 16:57:27 +00:00
mycroft 26fc0dfe09 Convert 8-bit signed linear data to unsigned for .wav files. 2004-07-19 19:27:59 +00:00
mycroft 680669cd36 Fix fencepost errors in the conversion functions (making them a bit more like
the kernel versions).
2004-07-19 19:15:05 +00:00
wiz b9c239be76 Add -q to SYNOPSIS. From Kouichirou Hiratsuka in PR 26193. 2004-07-09 11:36:33 +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
drochner e87f74fd64 put the __packed__ attribute close to the struct definition
(to appease gcc-3.4), and use the compiler-independant __packed
form for consistency
2004-07-01 20:56:34 +00:00
lukem b817247988 Use MKPRIVATELIB=yes instead of providing an empty libinstall:: target and
setting NOLINT, NOPIC, NOPROFILE (etc)
2004-05-23 02:24:50 +00:00
mrg b1da97fd23 apply the patch from PR#24127: make audio_wav_parse_hdr() take u_int *
parameters for encoding, precision, sample rate and channels.
2004-01-21 11:55:07 +00:00
fvdl 9651aa2f12 Don't set an int to NULL. 2003-10-21 02:15:00 +00:00
wiz 0402922a63 Sort usage, and move a word. 2003-08-07 10:04:21 +00:00
wiz 136392f22f Add arguments to options in long description. 2003-08-07 10:04:01 +00:00
salo 0f5a0c156d netbsd.org->NetBSD.org 2003-07-26 20:34:11 +00:00
mrg dd10ebe3f2 fix a now-wrong comment. 2003-07-21 00:55:59 +00:00
mrg e312c82e5f minor consistency nit 2003-07-21 00:55:40 +00:00
agc c0db2196e7 Add NetBSD RCS Ids. 2003-06-23 12:15:00 +00:00
wiz 68caa698b2 Respect the law: Use A-law and mu-law as spellings as far as easily possible.
Inspired by Igor Sobrado in PR 19680.
2003-04-06 18:20:07 +00:00
perry 9f3d802514 audiofiles -> audio files 2003-03-31 02:40:25 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz c053751628 compatibility, not compatiblity. 2003-01-06 13:26:24 +00:00
mrg c0f9ed084d - decode_int(): always use base 10, so that a time of "1:09" works.
- decode_time(): 60 seconds in a minute, really.
both from tsarna@netbsd.org.

- be verbose about the time we are going to record for, if verbose.
2002-12-27 23:43:15 +00:00
wiz e93f0aaa95 Be consistent about putting commas between items in an enumeration. 2002-12-18 19:48:28 +00:00
mrg e7e34e98bb fix an error message 2002-12-08 10:49:22 +00:00
mrg 18c97a1496 remove some #if 0 debug code 2002-12-08 10:49:03 +00:00
mrg be9dc1869d fix the description for "-p" to match reality, new text provided in PR#18949. 2002-12-08 10:00:12 +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
wiz 900f387c29 New sentence, new line. Sort options. Bump Dd for .wav-file handling.
Some nits.
2002-10-13 01:03:48 +00:00
mrg eb0d04136f inline the contents of auconv.c into auconv.h. this makes audiorecord(1)
slightly smaller (about 200 bytes on x86) and i would guess slightly faster.
2002-10-13 00:59:45 +00:00
mrg ba18b19aa5 if the output file is called *.wav, output a WAV file. 2002-10-13 00:56:44 +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
lukem 5d4973fe97 makefile delint. use NETBSDSRCDIR as appropriate 2002-09-18 14:00:33 +00:00
ross 96e43b2c89 + rephrase a bunch of stuff
+ fix totally bogus -i text
2002-09-02 04:40:03 +00:00
grant eda9e509bb sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:40:16 +00:00
mrg c5c02584f0 fix an error message. 2002-07-20 07:45:08 +00:00
uwe 770c31348b _PATH_SOUND0 should be opened O_RDONLY (obvious pasto). 2002-03-21 03:48:24 +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
wiz 638f85ed29 Be more verbose in description of -e. 2002-02-10 16:46:44 +00:00
mrg 16189b5a23 - add a AUDIO_FORMAT_DEFAULT. use it. don't change functionity.
- fix the function selection in sunau conversions.

- be more verbose when given -V.  (hi lennart! :)
2002-02-10 15:30:53 +00:00
mrg 53ecceda8d apply the same fix as the previous to WAV output creation. 2002-02-10 13:23:27 +00:00
mrg 10d9e15ba0 convert the host (non _LE or _BE) encodings we can, as well. fixes part
of PR#12809...
2002-02-10 13:16:08 +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