The NetBSD Project

CVS log for src/usr.bin/audio/record/record.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / audio / record

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.57 / (download) - annotate - [select for diffs], Sat Apr 15 12:39:44 2023 UTC (10 months, 1 week ago) by mlelstv
Branch: MAIN
CVS Tags: HEAD
Changes since 1.56: +11 -3 lines
Diff to previous 1.56 (colored)

Add support for recording 24bit wav files.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Jan 9 06:33:13 2022 UTC (2 years, 1 month ago) by mlelstv
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.55: +16 -11 lines
Diff to previous 1.55 (colored)

Let user gracefully abort recording with SIGINT.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Jun 1 21:08:48 2021 UTC (2 years, 8 months ago) by riastradh
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x
Changes since 1.54: +8 -3 lines
Diff to previous 1.54 (colored)

audiorecord(1): Handle read(2) return value gracefully.

Revision 1.54 / (download) - annotate - [select for diffs], Wed Aug 5 06:54:39 2015 UTC (8 years, 6 months ago) by mrg
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.53: +37 -37 lines
Diff to previous 1.53 (colored)

rename struct write_info as struct track_info, and the variable name 'wi'
as 'ti', as this info is useful for reading as well.

Revision 1.52.8.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:56 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.52: +53 -421 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Thu May 22 11:42:42 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.52: +53 -421 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.53 / (download) - annotate - [select for diffs], Fri Aug 30 20:57:26 2013 UTC (10 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.52: +53 -421 lines
Diff to previous 1.52 (colored)

move most of the header writing code from record.c into wav.c and sun.c.

introduce a struct write_info for communication between front ends and
backends.

libaudio API is still pretty ugly, and needs to stay local here for now,
but it is a little more usable for other tools now.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Sep 21 14:32:14 2011 UTC (12 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

PR/45384: Henning Petersen: Swapped arguments in lseek

Revision 1.51 / (download) - annotate - [select for diffs], Sun Aug 28 01:17:48 2011 UTC (12 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.50: +44 -56 lines
Diff to previous 1.50 (colored)

ANSIfy. Add static. Add __dead.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Dec 29 18:49:41 2010 UTC (13 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

Sort usage.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Dec 29 14:38:55 2010 UTC (13 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.48: +6 -5 lines
Diff to previous 1.48 (colored)

allow for buffer sizes < 32k

Revision 1.48 / (download) - annotate - [select for diffs], Wed Dec 29 13:09:03 2010 UTC (13 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.47: +13 -11 lines
Diff to previous 1.47 (colored)

add a new "-B buffersize" flag to both audioplay and audiorecord.
suggested by jmcneill@.

sort audioplay manual some.

Revision 1.46.6.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:43 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.47 / (download) - annotate - [select for diffs], Sat Apr 11 10:43:10 2009 UTC (14 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored)

fix -Wsign-compare and other WARNS=4 issues

Revision 1.45.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:32:10 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.45: +2 -4 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:58 2008 UTC (15 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.45: +2 -4 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

sync with head

Revision 1.46 / (download) - annotate - [select for diffs], Thu May 29 14:51:27 2008 UTC (15 years, 8 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: jym-xensuspend
Changes since 1.45: +2 -4 lines
Diff to previous 1.45 (colored)

remove clause #3 from my license where there are no other
copyright holders involved.

Revision 1.43.12.2 / (download) - annotate - [select for diffs], Wed Jan 9 02:00:31 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.43.12.1: +3 -3 lines
Diff to previous 1.43.12.1 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored)

sync with HEAD

Revision 1.45 / (download) - annotate - [select for diffs], Sat Dec 15 19:44:49 2007 UTC (16 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Branch point for: yamt-pf42, wrstuden-revivesa
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

convert __attribute__s to applicable cdefs.h macros

Revision 1.43.12.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:35:40 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.43: +6 -2 lines
Diff to previous 1.43 (colored)

sync with HEAD

Revision 1.44 / (download) - annotate - [select for diffs], Fri Oct 5 07:27:41 2007 UTC (16 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: cube-autoconf-base, cube-autoconf
Changes since 1.43: +6 -2 lines
Diff to previous 1.43 (colored)

Convert to raise_default_signal(3).

Revision 1.43 / (download) - annotate - [select for diffs], Thu May 11 01:19:10 2006 UTC (17 years, 9 months ago) by mrg
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, hpcarm-cleanup, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: matt-armv6
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

variable signed/unsigned cleanup.

Revision 1.42 / (download) - annotate - [select for diffs], Tue May 9 15:55:44 2006 UTC (17 years, 9 months ago) by gson
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Do not treat all file names of length 1 as meaning standard output.

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Tue Jul 19 21:53:08 2005 UTC (18 years, 7 months ago) by riz
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.38: +56 -46 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

Pull up revisions 1.39-1.41 (requested by mrg in ticket #597):
1.39:
check that an output file is given before doing any other work.
avoids touching the audio device and then printing an error.

1.40:
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.

1.41:
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)

Revision 1.36.2.2.2.1 / (download) - annotate - [select for diffs], Mon Jul 18 04:11:00 2005 UTC (18 years, 7 months ago) by riz
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.36.2.2: +56 -46 lines
Diff to previous 1.36.2.2 (colored) next main 1.37 (colored)

Pull up revisions 1.39-1.41 (requested by mrg in ticket #5498):
1.39:
check that an output file is given before doing any other work.
avoids touching the audio device and then printing an error.

1.40:
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.

1.41:
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)

Revision 1.41 / (download) - annotate - [select for diffs], Wed Jul 13 10:57:11 2005 UTC (18 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.40: +8 -4 lines
Diff to previous 1.40 (colored)

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)

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jul 5 22:01:42 2005 UTC (18 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.39: +47 -42 lines
Diff to previous 1.39 (colored)

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.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Jul 5 21:05:50 2005 UTC (18 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.38: +5 -4 lines
Diff to previous 1.38 (colored)

check that an output file is given before doing any other work.
avoids touching the audio device and then printing an error.

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Fri Jul 23 18:07:14 2004 UTC (19 years, 7 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Changes since 1.36.2.1: +7 -3 lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

Pull up revision 1.38 (requested by mycroft in ticket #690):
Convert 8-bit signed linear data to unsigned for .wav files.

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Fri Jul 23 18:06:18 2004 UTC (19 years, 7 months ago) by tron
Branch: netbsd-2-0
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Pull up revision 1.37 (requested by mycroft in ticket #690):
Fix fencepost errors in the conversion functions (making them a bit more like
the kernel versions).

Revision 1.38 / (download) - annotate - [select for diffs], Mon Jul 19 19:27:59 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.37: +7 -3 lines
Diff to previous 1.37 (colored)

Convert 8-bit signed linear data to unsigned for .wav files.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jul 19 19:15:05 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Fix fencepost errors in the conversion functions (making them a bit more like
the kernel versions).

Revision 1.36 / (download) - annotate - [select for diffs], Tue Oct 21 02:15:00 2003 UTC (20 years, 4 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

Don't set an int to NULL.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Aug 7 10:04:21 2003 UTC (20 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

Sort usage, and move a word.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Jul 21 00:55:59 2003 UTC (20 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

fix a now-wrong comment.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jun 23 12:15:04 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.32: +7 -1 lines
Diff to previous 1.32 (colored)

Add NetBSD RCS Ids.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Dec 27 23:43:16 2002 UTC (21 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.31: +6 -2 lines
Diff to previous 1.31 (colored)

- 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.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Oct 13 00:56:44 2002 UTC (21 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.30: +13 -2 lines
Diff to previous 1.30 (colored)

if the output file is called *.wav, output a WAV file.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Jul 20 08:40:16 2002 UTC (21 years, 7 months ago) by grant
Branch: MAIN
Changes since 1.29: +8 -8 lines
Diff to previous 1.29 (colored)

sweep of errx/warnx, remove unnecessary trailing \n

Revision 1.29 / (download) - annotate - [select for diffs], Sat Jul 20 07:45:08 2002 UTC (21 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

fix an error message.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Mar 21 03:48:24 2002 UTC (21 years, 11 months ago) by uwe
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

_PATH_SOUND0 should be opened O_RDONLY (obvious pasto).

Revision 1.27 / (download) - annotate - [select for diffs], Sun Feb 10 15:30:55 2002 UTC (22 years ago) by mrg
Branch: MAIN
Changes since 1.26: +51 -8 lines
Diff to previous 1.26 (colored)

- 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! :)

Revision 1.26 / (download) - annotate - [select for diffs], Sun Feb 10 13:23:27 2002 UTC (22 years ago) by mrg
Branch: MAIN
Changes since 1.25: +25 -2 lines
Diff to previous 1.25 (colored)

apply the same fix as the previous to WAV output creation.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Feb 10 13:16:08 2002 UTC (22 years ago) by mrg
Branch: MAIN
Changes since 1.24: +34 -8 lines
Diff to previous 1.24 (colored)

convert the host (non _LE or _BE) encodings we can, as well.  fixes part
of PR#12809...

Revision 1.24 / (download) - annotate - [select for diffs], Tue Feb 5 00:17:27 2002 UTC (22 years ago) by augustss
Branch: MAIN
Changes since 1.23: +4 -3 lines
Diff to previous 1.23 (colored)

Test for default device in a portable way.  Thanks to Michael Ericsson
for spotting the problem.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Feb 2 20:20:26 2002 UTC (22 years ago) by jdolecek
Branch: MAIN
Changes since 1.22: +7 -16 lines
Diff to previous 1.22 (colored)

Retire -C, do all the ioctls on same audio device we do i/o

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jan 31 00:03:24 2002 UTC (22 years ago) by augustss
Branch: MAIN
Changes since 1.21: +7 -2 lines
Diff to previous 1.21 (colored)

Use _PATH_SOUND etc, all fall back to _PATH_SOUND0 (etc.) if that fails.

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Tue Jan 29 23:18:12 2002 UTC (22 years ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.10: +350 -65 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Pull up revisions 1.11-1.13,1.15-1.21 (via patch, requested by mrg):
  Bring in several fixes and enhancements to these tools:
   o fix stdin audioplay
   o add WAV support to audiorecord
   o allows any host to output any endian sample
   o don't output a bogus header
   o fix a bug in audiorecord -t
   o many manual page fixes
   o exit immediately on signals

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jan 15 23:48:53 2002 UTC (22 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.20: +13 -7 lines
Diff to previous 1.20 (colored)

- WARNS=3 (from ross@netbsd.org)
- fix a bug in WAV conversions

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jan 15 17:17:13 2002 UTC (22 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.19: +14 -5 lines
Diff to previous 1.19 (colored)

WAV seems to be signed only; convert unsigned samples.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jan 15 17:02:52 2002 UTC (22 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.18: +29 -40 lines
Diff to previous 1.18 (colored)

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.)

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jan 15 08:59:21 2002 UTC (22 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.17: +67 -8 lines
Diff to previous 1.17 (colored)

- 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???

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jan 15 08:19:38 2002 UTC (22 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.16: +263 -53 lines
Diff to previous 1.16 (colored)

- 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.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jun 7 12:50:29 2001 UTC (22 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.15: +4 -2 lines
Diff to previous 1.15 (colored)

only warn about not writing the sun header once. PR#12809

Revision 1.15 / (download) - annotate - [select for diffs], Wed May 2 12:49:42 2001 UTC (22 years, 9 months ago) by minoura
Branch: MAIN
Changes since 1.14: +6 -5 lines
Diff to previous 1.14 (colored)

X68k built-in voice synthesizer supports 4bit ADPCM.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Feb 19 23:03:44 2001 UTC (23 years ago) by cgd
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

convert to use getprogname()

Revision 1.13 / (download) - annotate - [select for diffs], Mon Feb 5 01:24:34 2001 UTC (23 years ago) by christos
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

fix nested extern

Revision 1.12 / (download) - annotate - [select for diffs], Fri Dec 22 11:38:43 2000 UTC (23 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.11: +7 -7 lines
Diff to previous 1.11 (colored)

de-__P()-ify

Revision 1.11 / (download) - annotate - [select for diffs], Wed Dec 13 08:19:55 2000 UTC (23 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.10: +11 -2 lines
Diff to previous 1.10 (colored)

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>.

Revision 1.4.2.5 / (download) - annotate - [select for diffs], Wed Feb 2 23:22:59 2000 UTC (24 years ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.4.2.4: +3 -1 lines
Diff to previous 1.4.2.4 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Pull up revision 1.10 (requested by dmcmahill):
  When no `-e' flag is used to specify an encoding, default to
  "ulaw".  Fixes PR#9329.  Also document the default.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Feb 2 05:02:25 2000 UTC (24 years ago) by dmcmahill
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

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.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:46 1999 UTC (24 years, 2 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.7: +6 -6 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Pull up to last week's -current.

Revision 1.4.2.4 / (download) - annotate - [select for diffs], Thu Nov 11 21:23:47 1999 UTC (24 years, 3 months ago) by he
Branch: netbsd-1-4
Changes since 1.4.2.3: +2 -2 lines
Diff to previous 1.4.2.3 (colored) to branchpoint 1.4 (colored)

Pull up revision 1.9 (requested by kleink):
  Do not indicate success in the exit status if usage instructions
  had to be printed.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Nov 8 10:21:21 1999 UTC (24 years, 3 months ago) by kleink
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

When we have to print usage instructions, don't indicate success in the exit
status.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Fri Oct 22 09:32:54 1999 UTC (24 years, 4 months ago) by he
Branch: netbsd-1-4
Changes since 1.4.2.2: +4 -3 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored)

Pull up revision 1.6 (requested by dmcmahill):
  If not specified on the command line, attempt to fall back
  to the environment variables AUDIODEVICE (for -d) and
  AUDIOCTLDEVICE (for -C) before falling back to _PATH_* constants.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Mon Sep 27 05:28:31 1999 UTC (24 years, 5 months ago) by cgd
Branch: netbsd-1-4
Changes since 1.4.2.1: +7 -7 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

pull up revs 1.7-1.8 from trunk (requested by mrg):
  Fix audiorecord(1)'s "-t" option so that it actually works.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Sep 27 01:58:07 1999 UTC (24 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (colored)

run forever if no -t is specified, from dan mcmahill

Revision 1.7 / (download) - annotate - [select for diffs], Thu Sep 23 15:41:31 1999 UTC (24 years, 5 months ago) by dmcmahill
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

fix -t option

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 13 14:02:34 1999 UTC (24 years, 7 months ago) by kleink
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

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.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Wed Jun 23 14:03:01 1999 UTC (24 years, 8 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH001
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

pullup 1.4->1.5 (jtk)

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jun 19 05:20:17 1999 UTC (24 years, 8 months ago) by itohy
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Fix -C behavior.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Mar 27 18:16:23 1999 UTC (24 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE
Branch point for: netbsd-1-4
Changes since 1.3: +15 -2 lines
Diff to previous 1.3 (colored)

expand usage message to reality.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Mar 27 17:46:00 1999 UTC (24 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.2: +9 -13 lines
Diff to previous 1.2 (colored)

make recording precision/encoding setting sane.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Mar 26 15:46:22 1999 UTC (24 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.1: +30 -0 lines
Diff to previous 1.1 (colored)

add missing copyrights.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Mar 26 14:02:41 1999 UTC (24 years, 11 months ago) by mrg
Branch: MAIN

add audiorecord and audioplay tools.  audioplay does .au and .wav files.  audiorecord makes .au files only.  uses parts of audioctl..

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>