Commit Graph

38 Commits

Author SHA1 Message Date
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
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
mrg dd10ebe3f2 fix a now-wrong comment. 2003-07-21 00:55:59 +00:00
agc c0db2196e7 Add NetBSD RCS Ids. 2003-06-23 12:15:00 +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
mrg ba18b19aa5 if the output file is called *.wav, output a WAV file. 2002-10-13 00:56:44 +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
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
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 d1c426fe38 Use _PATH_SOUND etc, all fall back to _PATH_SOUND0 (etc.) if that fails. 2002-01-31 00:03:23 +00:00
mrg e7fdf18240 - WARNS=3 (from ross@netbsd.org)
- fix a bug in WAV conversions
2002-01-15 23:48:51 +00:00
mrg 826ddb01b9 WAV seems to be signed only; convert unsigned samples. 2002-01-15 17:17:13 +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 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
mrg 9a7e97f190 only warn about not writing the sun header once. PR#12809 2001-06-07 12:50:29 +00:00
minoura 399af9e4a8 X68k built-in voice synthesizer supports 4bit ADPCM. 2001-05-02 12:49:41 +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 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
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
mrg b3a888e9cd run forever if no -t is specified, from dan mcmahill 1999-09-27 01:58:07 +00:00
dmcmahill df5a9e3cb5 fix -t option 1999-09-23 15:41:31 +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
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 e0c321f25d add missing copyrights. 1999-03-26 15:46:22 +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