* audioplay does not accept stdin
@ 1997-04-13 4:00 Erik Persson
0 siblings, 0 replies; only message in thread
From: Erik Persson @ 1997-04-13 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1607 bytes --]
I recently upgraded all of my Alphas to Digital Unix 4.0B and on some
of these (my own workstation for example) I also installed Multimedia
Services (MME220). I'm priamry using MME for listening to MPEG-2 audio
files and this is done by this shell script:
-->snip<--
#!/bin/sh
if [ -f $1 ]; then
/usr/local/bin/maplay -v -s $1 | /usr/bin/mme/audioplay -r
44100 -e pcm -c 2 -b 16 -m 1000 -f - >& /dev/null
else
echo "$1: Couldn't play."
fi
-->snip<--
From the manual page of audioplay:
-->snip<--
OPTIONS
audioplay accepts the following command line options:
[-filename filename]
Audio file name to play. If the file name is "-", input
will be taken from stdin. Defaults to tempfile.wav.
-->snip<--
Starting with teh advent of the MME that came on the 4.0A Associated
Products audioplay started to refuse accepting - (and also "-" to
comply with the man page) with the error:
PARSE ERROR: Missing value -f -
This behaviour is consistent a simpler case:
cat bells.wav | audioplay -f -
Gives the same error. A number of different quotation styles for "-"
has been tried with no gain.
Back then I solved the problem by simply using an older version of
audioplay, but when I made the upgrade to 4.0B on all machines i kind
of forgot to make backups of that file so now I'm stuck.
Has anyone seen this or even better - solved it?
Thanks,
/Erik
--
Erik Persson, System Manager e-mail: erik@ikp.liu.se
Dept. of Mech. Engineering Voice: +46 13 28 2464
Division of Solid Mechanics Fax: +46 13 21 2717
University of Link�ping, Sweden
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-04-13 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-13 4:00 audioplay does not accept stdin Erik Persson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox