madplay: How to select a specific ALSA card

View: New views
3 Messages — Rating Filter:   Alert me  

madplay: How to select a specific ALSA card

by Thomas Reitmayr-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I just started using madplay a short while ago and I was wondering
whether it is possible to select an ALSA card different from the default
one for audio output.
>From looking at the code it seems like the PATH part of --output is
used, however
  madplay --output=alsa:plughw:1 myfile.mp3
chokes as the TYPE alsa does not exist (in audio.c).

Did I miss something in the command line or is this a bug / missing
feature (for which I could provide a patch)?

Thanks,
-Thomas


Re: madplay: How to select a specific ALSA card

by Rafal Rusin () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thomas Reitmayr-2 wrote:
Hi,
I just started using madplay a short while ago and I was wondering
whether it is possible to select an ALSA card different from the default
one for audio output.
>From looking at the code it seems like the PATH part of --output is
used, however
  madplay --output=alsa:plughw:1 myfile.mp3
chokes as the TYPE alsa does not exist (in audio.c).

Did I miss something in the command line or is this a bug / missing
feature (for which I could provide a patch)?

Thanks,
-Thomas
You can try:
madplay -o wave:- something.mp3 | aplay

Regards

Re: madplay: How to select a specific ALSA card

by Rafal Rusin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


joker1999 wrote:
Thomas Reitmayr-2 wrote:
Hi,
I just started using madplay a short while ago and I was wondering
whether it is possible to select an ALSA card different from the default
one for audio output.
>From looking at the code it seems like the PATH part of --output is
used, however
  madplay --output=alsa:plughw:1 myfile.mp3
chokes as the TYPE alsa does not exist (in audio.c).

Did I miss something in the command line or is this a bug / missing
feature (for which I could provide a patch)?

Thanks,
-Thomas
You can try:
madplay -o wave:- something.mp3 | aplay

Regards

You may also need
mount /dev/sda1 -o remount,async,noatime
on nslu2 to get better usb transfer, so you won't experience hangs during playback.

Regards