how to configurate audio_output

Need help with MPD?
Post Reply
Stefan
Posts: 3
Joined: April 21st, 2015, 3:04 pm

how to configurate audio_output

Post by Stefan »

Hi,

i am using mpd right now with these audio_output options

Code: Select all

#AUDIO_OUTPUT#
audio_output {
	type "pulse"
	name "My_Pulse"
}
and it is working fine. But i want to use external Audio and connect my laptop with and networkplayer via usb. A friend already told me i probably need to use "alsa" instead of "pulse" and i think my config should look like this

Code: Select all

#AUDIO_OUTPUT#
audio_output {
	type "alsa"
	name "My_Alsa"
        device "???"
}
with terminal commands like aplay lsusb and dmesg (is there an equivalent in linux to windows device manager?) i already found out that they detect something. I want to know how my audio_output should look like and where/how can i find the missing informations.

Btw i am running Linux Mint 17.1

Any help would be greatly appreciated

Rasi
Forum team
Posts: 141
Joined: January 16th, 2013, 7:29 pm

Re: how to configurate audio_output

Post by Rasi »

no you dont need to use alsa. infact pulse works better with multiple soundcards, since you can switch easily on the fly.
just leave your original output as it was and use pavucontrol to switch which soundcard is used by mpd.

You can also set the correct pulse sink directly.
Example:

Code: Select all

audio_output {
                type            "pulse"
                name            "caprica"
                sink            "alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00-CODEC.iec958-stereo"
}
You can find the name of the sink with:

Code: Select all

carnager@tauron ~ > pactl list sinks | grep "Name:"
	Name: alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00-CODEC.iec958-stereo

skidoo
Posts: 181
Joined: April 28th, 2013, 10:06 pm
Location: Western Germany

Re: how to configurate audio_output

Post by skidoo »

infact pulse works better with multiple soundcards, since you can switch easily on the fly.
just leave your original output as it was and use pavucontrol to switch which soundcard is used by mpd.
Why not switching soundcards via MPD client :) Just define one output per soundcard.

@Stefan

Code: Select all

$ cat /proc/asound/cards

Code: Select all

$ aplay -l

Code: Select all

$ aplay -L
Try device "hw:0,0" for first soundcard.

Stefan
Posts: 3
Joined: April 21st, 2015, 3:04 pm

Re: how to configurate audio_output

Post by Stefan »

Thx for the replies,

it is working for now with my initial alsa idea. I only needed the device number which i can find out via aplay -l. For now i try to sooner or later install mpd on the network player since i got a custom firmware to try out. If this is working i could give i a try with pulse since it is newer than alsa and due to that probably somehow better.

Post Reply