Subject: bin/13773: audioplay does not work with stdin
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin J. Laubach <mjl@emsi.priv.at>
List: netbsd-bugs
Date: 08/23/2001 12:25:54
>Number: 13773
>Category: bin
>Synopsis: audioplay does not work with stdin
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 23 03:22:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Martin J. Laubach
>Release: -current
>Organization:
>Environment:
System: NetBSD celery.emsi.priv.at 1.5X NetBSD 1.5X (TELERY) #12: Mon Aug 6 00:49:09 CEST 2001 mjl@celery.emsi.priv.at:/home/users/mjl/netbsd/current/basesrc/sys/arch/macppc/compile/TELERY macppc
Architecture: powerpc
Machine: macppc
>Description:
When trying to play a CD on my G4, which does not have a direct
connection from the CD-ROM to the sound card (in fact there is no
such thing as an analogue input to the mixer), I came up with the
following:
% cdparanoia -S 1 -g /dev/cd0c -p 1 -Y - | \
audioplay -f -c 2 -P 16 -s 44100 -e slinear_le
However, this immediately exits with nothing played.
The first part (cdparanoia) works fine, I redirected the output
to some file:
% cdparanoia -S 1 -g /dev/cd0c -p 1 -Y - > x
Playing this file works (though it produces a warning):
% audioplay -f -c 2 -P 16 -s 44100 -e slinear_le x
audioplay: bogus datasize: 0: Undefined error: 0
[Sound comes out the speaker]
Playing this same file via stdin does not work:
% audioplay -f -c 2 -P 16 -s 44100 -e slinear_le < x
[Immediately exits]
% echo $?
0
A cursory look at the source seems to indicate that playing from
stdin is supported, so why doesn't it work?
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: