NetBSD Problem Report #10380
Received: (qmail 5867 invoked from network); 16 Jun 2000 21:26:51 -0000
Message-Id: <20000616212650.26E561A2E2@kafka.testbed.era.ericsson.se>
Date: Fri, 16 Jun 2000 23:26:50 +0200 (CEST)
From: eramore@era-t.ericsson.se
Sender: mer@kafka.testbed.era.ericsson.se
Reply-To: eramore@era-t.ericsson.se
To: gnats-bugs@gnats.netbsd.org
Cc: eramore@era-t.ericsson.se
Subject: audiorecord puts bogus encoding info in file header
X-Send-Pr-Version: 3.95
>Number: 10380
>Category: bin
>Synopsis: audiorecord puts bogus encoding info in file header
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 16 21:27:00 +0000 2000
>Closed-Date: Wed Dec 13 08:20:07 +0000 2000
>Last-Modified: Wed Dec 13 08:20:07 +0000 2000
>Originator: Michael Eriksson
>Release: -current as of about May 31, 2000
>Organization:
Ericsson Radio Systems AB
>Environment:
System: NetBSD kafka 1.4Z NetBSD 1.4Z (KAFKA) #0: Wed May 31 23:43:12 CEST 2000 mer@kafka:/usr/src/sys/arch/i386/compile/KAFKA i386
>Description:
audiorecord puts a "Sun/NeXT" audio header at the beginning of its
output files. When it sets the encoding field in the header, it uses
the encoding value of NetBSD's audio interface, as defined in
/usr/include/sys/audioio.h. Sun/NeXT headers use a completely other
set of encoding values, as defined in usr.bin/audio/common/libaudio.h.
By chance, the default encoding (ulaw) happens to have the same value
(1) in both encoding domains, but many of the possible audio formats
can't even be described by the Sun/NeXT audio file header.
>How-To-Repeat:
Record audio in another format than ulaw and check the file's header.
>Fix:
Don't use the Sun/NeXT audio file format, or at least not by default.
What file format to use instead is not known by me, but no header (raw
format) is obviously much better than a bogus header...
If the Sun/NeXT format is kept (as default or as an option), the
program should create a correct header or complain that it's
impossible.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mrg
State-Changed-When: Wed Dec 13 00:16:56 PST 2000
State-Changed-Why:
fixed has been commited.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.