Commit Graph

158 Commits

Author SHA1 Message Date
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
dmcmahill
10800b97f9 add description of the -t option 1999-09-23 15:42:06 +00:00
dmcmahill
df5a9e3cb5 fix -t option 1999-09-23 15:41:31 +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
feac6b2836 Use "NULL" instead of "0" for null pointer. 1999-09-13 17:35:33 +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
itohy
3d900be131 Fix -C behavior. 1999-06-19 05:20:17 +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
491f8a4815 reword description to not be audioplay, as noted by pr#7379. 1999-04-14 09:03:41 +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
6e9632f4a4 Xref audioplay(1) and audiorecord(1). 1999-04-02 15:53:39 +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
dfe35fea6d remove duplicate include of <stdio.h> 1999-03-30 14:46:23 +00:00
mycroft
b0a62f4d5b Only 8-bit data is unsigned in WAVE files. 1999-03-29 11:09:04 +00:00
mrg
ae3f9933ee .wav files are little endian. 1999-03-29 04:49: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
mrg
aefa214c3e expand usage message to reality. 1999-03-27 18:16:23 +00:00
mrg
eeeadf8446 make recording precision/encoding setting sane. 1999-03-27 17:46:00 +00:00
mrg
740f05c805 add support to play stdin. 1999-03-27 05:14:37 +00:00
mrg
e0c321f25d add missing copyrights. 1999-03-26 15:46:22 +00:00
mrg
072cb74108 audio paths are in <paths.h> 1999-03-26 14:05:41 +00:00
mrg
140c9e18e1 add audiorecord and audioplay tools. audioplay does .au and .wav files. audiorecord makes .au files only. uses parts of audioctl.. 1999-03-26 14:02:39 +00:00
erh
fa45851f9b Add missing .El line. 1999-03-10 05:14:51 +00:00
mycroft
ed792e5ddd Oops; update the date as well. 1999-02-18 17:43:03 +00:00
mycroft
e33b5e3104 Update comments. 1999-02-18 17:40:36 +00:00
mycroft
ba0967bb41 Rework the examples section a little. 1999-02-18 17:37:37 +00:00
augustss
9726cfd1fb Make the copyright header conform to the NetBSD template. 1998-11-25 22:17:06 +00:00
augustss
479659f618 Fix thinko in last commit. 1998-08-21 19:52:39 +00:00
augustss
022a8ef794 Use audio and mixer devices with unit numbers. Also allow the devices
without unit numbers of a compatibility option is set.  Fixes PR 5991.
1998-08-21 19:45:37 +00:00
mrg
106340f1ef audio_prinfo.seek is now a UINT 1998-08-13 09:36:34 +00:00
mycroft
8efdd63546 Make it possible to do:
audioctl -w play=44100,2,16,slinear

Not the greatest implementation.
1998-08-10 18:19:03 +00:00
mycroft
519d858510 __AUDIT__ cleanup. 1998-07-28 19:22:54 +00:00
augustss
7a4317cfef Fix typo. From Feico Dillema <dillema@acm.org> 1998-07-13 15:11:03 +00:00
augustss
b817f6c32a Chnage the name of the environment variables just introduced. 1998-04-27 16:55:23 +00:00
augustss
5749437b03 Add an environment variable for the default audio device. 1998-04-27 16:48:59 +00:00
augustss
69a1b57acb Update for SunOS compatibility. 1997-10-19 07:44:12 +00:00
lukem
e3e553a90c fix .Nm usage 1997-10-18 12:05:22 +00:00
augustss
64e2e4badb Print properties differently.
Change indentation.
1997-10-11 13:40:26 +00:00
jtc
3ee7ba138d Fix tipo inherited from old version of TNF copyright template. 1997-10-08 22:31:53 +00:00
augustss
b217726cdc Get rid of warnings. 1997-10-07 13:55:03 +00:00
augustss
4d52119684 Don't try opening the device O_RDWR. 1997-08-25 19:03:12 +00:00
augustss
653833821e Change to use /dev/audioctl. 1997-08-18 21:35:26 +00:00
augustss
f18d1df87b Modernize for new audio features. 1997-07-27 01:28:04 +00:00
augustss
78612a1a5b Sync with audioio.h changes. 1997-07-16 06:55:27 +00:00
veego
6937751466 Sync with the recent changes of the audio variables.
s/AUDIO_ENCODING_LINEAR_LE/AUDIO_ENCODING_SLINEAR_LE/
s/AUDIO_ENCODING_LINEAR_BE/AUDIO_ENCODING_SLINEAR_BE/
1997-07-15 18:00:12 +00:00
augustss
72a30783f7 Fix pasto. 1997-05-21 22:25:13 +00:00
augustss
3f516911f6 Fix some buglets and clean up a little. 1997-05-19 16:32:54 +00:00
augustss
240af559df Add HISTORY section. 1997-05-15 16:38:34 +00:00
augustss
9d5e7c9a4c Add audio utility programs.
The audio device can be inspected and changed by audioctl,
and the mixer device by mixerctl.  The command syntax was
inspired by sysctl.
1997-05-13 17:35:50 +00:00