Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2001 13:25:29 -0500
From:      Harlan Stenn <Harlan.Stenn@pfcs.com>
To:        questions@freebsd.org
Subject:   mpg123, 4-STABLE with pcm (ES1371)
Message-ID:  <28097.982088729@brown.pfcs.com>

next in thread | raw e-mail | index | archive | help
I've installed a machine from the 4.2-RELEASE CDs, including mpg123 from the 
packages distribution.

I built a kernel with "device pcm" and created the sound devices.

# cat /dev/sndstat 
FreeBSD Audio Driver (newpcm) Jan 20 2001 13:47:36
Installed devices:
pcm0: <AudioPCI ES1371> at io 0xa800 irq 9 (1p/1r channels duplex)
# mpg123 foo.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Can't open /dev/dsp!
# mpg123 -a /dev/pcaudio foo.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Can't open /dev/pcaudio!
#

The machine is now at 4-STABLE.

The error message chagnes slightly if I use mpg123 compiled from ports:

# ./mpg123 foo.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
/dev/dsp: Device busy
audio: Device busy
# ./mpg123 -a /dev/pcmaudio foo.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
/dev/dsp: Device busy
audio: Device busy

This last one is not a typo - I fed it the -a option and it seems to be
ignored.

Also, "lsof" says *nothing* about /dev/dsp .

Ideas?  (I'll probably start hacking the C code in a bit to track down the
-a option thing - I have lots of irons in the fire today).

H


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?28097.982088729>