Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/audio/record When no -e flag is used to specify the ...



details:   https://anonhg.NetBSD.org/src/rev/05874a2a8dee
branches:  trunk
changeset: 481561:05874a2a8dee
user:      dmcmahill <dmcmahill%NetBSD.org@localhost>
date:      Wed Feb 02 05:02:25 2000 +0000

description:
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@localhost)
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.

diffstat:

 usr.bin/audio/record/audiorecord.1 |  4 +++-
 usr.bin/audio/record/record.c      |  4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r a25e32c7f02d -r 05874a2a8dee usr.bin/audio/record/audiorecord.1
--- a/usr.bin/audio/record/audiorecord.1        Wed Feb 02 04:45:21 2000 +0000
+++ b/usr.bin/audio/record/audiorecord.1        Wed Feb 02 05:02:25 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: audiorecord.1,v 1.7 1999/09/23 15:42:06 dmcmahill Exp $
+.\"    $NetBSD: audiorecord.1,v 1.8 2000/02/02 05:02:25 dmcmahill Exp $
 .\"
 .\" Copyright (c) 1998-1999 Matthew R. Green
 .\" All rights reserved.
@@ -78,6 +78,8 @@
 .Dq ulaw
 or
 .Dq linear .
+The default encoding is
+.Dq ulaw .
 .It Fl f
 Force.  Normally when appending to audiofiles using the
 .Fl a
diff -r a25e32c7f02d -r 05874a2a8dee usr.bin/audio/record/record.c
--- a/usr.bin/audio/record/record.c     Wed Feb 02 04:45:21 2000 +0000
+++ b/usr.bin/audio/record/record.c     Wed Feb 02 05:02:25 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: record.c,v 1.9 1999/11/08 10:21:21 kleink Exp $        */
+/*     $NetBSD: record.c,v 1.10 2000/02/02 05:02:25 dmcmahill Exp $    */
 
 /*
  * Copyright (c) 1999 Matthew R. Green
@@ -235,6 +235,8 @@
                if (encoding == -1)
                        errx(1, "unknown encoding, bailing...");
        }
+       else
+               encoding = AUDIO_ENCODING_ULAW;
 
        if (precision)
                info.record.precision = precision;



Home | Main Index | Thread Index | Old Index