You are not logged in.

#1 2012-07-06 09:58:56

epaaj
Member
Registered: 2011-08-10
Posts: 6

[SOLVED] MPD plays sound in card 0 when default is set to card 1

I'm trying out a USB Headset (card 1) which is working fine for all applications to play sound at the same time, except for MPD. (Tried mplayer, aplay, flash/youtube, playing games, skype)
MPD still uses Intel (card 0) as default for some reason even though I have not changed anything from the default settings in /etc/mpd.conf:

audio_output {
 type "alsa"
 name "My ALSA Device"
}

I also tried mixing up with some of these settings but could not get it to work. I can get MPD output to the USB Headset with "hw:1,0" but that does not use dmix and locks the soundcard for other applications.

audio_output {
 type "alsa"
 name "My ALSA Device"
# device "hw:0,0" # optional
# device "hw:1,0" # optional
device "default" # optional
# device "plug:dmix" # optional
# mixer_type "software"
# mixer_device "default" # optional
# mixer_device "hw:0,0" # optional
mixer_control "PCM" # optional
# mixer_index "0" # optional
}

I'm setting soundcard with:

asoundconf is-active
asoundconf list
asoundconf set-default-card Headset

I also tried restarting alsa and mpd several times if there were some setting that was stuck or something.

Thanks in advance for anything that can help me.

Last edited by epaaj (2012-07-06 10:22:57)

Offline

#2 2012-07-06 10:22:35

epaaj
Member
Registered: 2011-08-10
Posts: 6

Re: [SOLVED] MPD plays sound in card 0 when default is set to card 1

I was able to solve this myself and some help from a friend.

It turned out that MPD was running as user mpd and the default soundcard was only changed for my user. When changing to card 1 for user mpd it worked fine.

Offline

Board footer

Powered by FluxBB