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.
This commit is contained in:
parent
ea37d51548
commit
a0de3d7fa5
|
@ -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 @@ Set encoding to either
|
|||
.Dq ulaw
|
||||
or
|
||||
.Dq linear .
|
||||
The default encoding is
|
||||
.Dq ulaw .
|
||||
.It Fl f
|
||||
Force. Normally when appending to audiofiles using the
|
||||
.Fl a
|
||||
|
|
|
@ -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 @@ main(argc, argv)
|
|||
if (encoding == -1)
|
||||
errx(1, "unknown encoding, bailing...");
|
||||
}
|
||||
else
|
||||
encoding = AUDIO_ENCODING_ULAW;
|
||||
|
||||
if (precision)
|
||||
info.record.precision = precision;
|
||||
|
|
Loading…
Reference in New Issue