WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: mpg123 alsa module  (Read 4633 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14756
mpg123 alsa module
« on: June 19, 2009, 07:41:01 AM »
Ref:
Code: [Select]
$ mpg123 --list-modules

Available modules
-----------------
oss            output  Output audio using OSS
dummy          output  Dummy audio output - does not output audio.

..would it be possible to add the alsa module (what a pain this guy is, eh?)

Unfortunately xmms with the alsa module results in a series of clicks in a bluetooth headset (the bluez wiki suggests this might be a problem, it plays fine through a sound card), but on the plus side, MPlayer-svn-gtk1 plays fine via alsa to a bluetooth headset - nerdy, but somehow cool.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: mpg123 alsa module
« Reply #1 on: June 19, 2009, 12:38:27 PM »
ALSA output module added.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14756
Re: mpg123 alsa module
« Reply #2 on: June 20, 2009, 04:06:24 AM »
..gave it a quick try, but:
Code: [Select]
$ mpg123 --list-modules

mpg123 has been built in legacy mode - dynamic modules are not available.
Available modules
-----------------
oss            output  Output audio using OSS
You made some mistake in program usage... let me briefly remind you:
...

If I load alsa/alsa-devs and make a quick n dirty compile, mpg123 will play via alsa, it still goes on about "legacy mode"...

Edit: If you load libltdl from libtool and then compile, things seem to work better:
Code: [Select]
$ mpg123 --list-modules

Available modules
-----------------
dummy          output  Dummy audio output - does not output audio.
oss            output  Output audio using OSS
alsa           output  Output audio using Advanced Linux Sound Architecture (ALSA).
« Last Edit: June 20, 2009, 04:19:17 AM by Juanito »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: mpg123 alsa module
« Reply #3 on: June 20, 2009, 01:57:36 PM »
The compile listed alsa, oss, and dummy as available output drivers.  I did not compile against libtool to avoid that libtool shared library dependency.  I reckon I could build it against libtool and make it a self contained app with libtdl.so* included in the package as to not have to have libtool loaded as a dep.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: mpg123 alsa module
« Reply #4 on: June 21, 2009, 11:02:57 PM »
Rebuilt as a self contained app with libltdl included to avoid libtool dependency/conflict and that seems to work.