media-sound/mpg321-0.2.10.6 refuses to play a sound without "-o alsa" on the command line even though both it and media-libs/libao-0.8.8 are built with USE=alsa. Reproducible: Always Steps to Reproduce: 1.mpg321 sound.pm3 Actual Results: High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3. Version 0.59q (2002/03/23). Written and copyrights by Joe Drew. Uses code from various people. See 'README' for more! THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK! Directory: // Playing MPEG stream from sound.mp3 ... MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo Can't find a suitable libao driver. (Is device in use?) Expected Results: High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3. Version 0.59q (2002/03/23). Written and copyrights by Joe Drew. Uses code from various people. See 'README' for more! THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK! Playing MPEG stream from sound.mp3 ... MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo [0:43] Decoding of sound.mp3 finished. This is really stupid. When I have already given alsa as USE-flags to libao and mpg321, why can it not accept that it should use alsa without explicit command line parameters?
I just tried to unpack mpg321 from distfiles, executed ./configure and make, and then I could play a file without giving alsa on the command line. So it really looks like a pure Gentoo bug!
So, Try removing these from the ebuild, local myao=oss use alsa && myao=alsa09 --with-default-audio=${myao} And report back if it's working then. The ./configure kludge might be broken.
Btw, mpg321 has been dead since 2006 when mpg123 became LGPL, so it's also unrecommended player. Just saying.
(In reply to comment #2) > So, > > Try removing these from the ebuild, > > local myao=oss > use alsa && myao=alsa09 > --with-default-audio=${myao} > > And report back if it's working then. The ./configure kludge might be broken. I did not try to modify the ebuild, but I tried to execute my own build with -o alsa09 and it failed with the same error as the Gentoo build. So it is obviously the alsa09 thing that fails. I have no idea what alsa09 means and why it is used instead of alsa in the ebuild. I suppose that I will just use mpg123 instead then. Will mpg321 be removed soon? I tried to follow its homepage link on fresmeat.net, but it was unreachable. and emerge -s mpg321 shows a link to a Debian package page as website.
Indeed media-sound/mpg123-1.9.2 can play files without explicitly telling it on the command line to use alsa. I will just use it instead of mpg321.
+ 15 Dec 2009; Samuli Suominen <ssuominen@gentoo.org> + mpg321-0.2.10.6.ebuild: + Remove --with-default-audio so mpg321 will use libao default instead wrt + #297013.