You are not logged in.

#1 2012-08-29 21:06:00

Thom
Member
Registered: 2012-05-22
Posts: 72
Website

[SOLVED] Sound + mpd + vlc - one instance

Hi !

I'm still trying to improve my arch install.
Today I try to configure sound.

I've got an sound card : a Xonar DG in order to drive my headset.

$ aplay -l
**** Liste des Périphériques Matériels PLAYBACK ****
carte 0: PCH [HDA Intel PCH], périphérique 0: ALC892 Analog [ALC892 Analog]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: PCH [HDA Intel PCH], périphérique 1: ALC892 Digital [ALC892 Digital]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 1: DG [Xonar DG], périphérique 0: Multichannel [Multichannel]
  Sous-périphériques: 0/1
  Sous-périphérique #0: subdevice #0
carte 1: DG [Xonar DG], périphérique 1: Digital [Digital]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 2: Generic [HD-Audio Generic], périphérique 3: HDMI 0 [HDMI 0]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0

I try to follow the wiki for mpd.
I'm the only user, I try the local install...

$ ls -l ~/music.d/.mpd
total 4
-rwxr-xr-x 1 thom root  625 29 août  02:17 config
-rwxr-xr-x 1 thom users   0 29 août  01:46 mpd.error
-rwxr-xr-x 1 thom users   0 29 août  00:06 mpd.log
-rw-r--r-- 1 thom users   0 29 août  00:06 mpd.pid
-rw-r--r-- 1 thom users   0 29 août  00:06 mpdstate
-rw-r--r-- 1 thom users   0 29 août  00:06 playlists.d
-rw-r--r-- 1 thom users   0 29 août  00:06 tag_cache

I put mpd as daemon in rc.conf.

My issues

1 - I can't have more than one sound output.
Ex :
If youtube works vlc, deadbeef doesn't.
If vlc works youtube, deadbeef doesn't
...
I know it's not useful but i've got the habit to work with music in background...

2 - mpd doesn't start on console and cmpcpp too

unrecognized parameter in config file at line 5: error_file
Couldn't connect to MPD (host = localhost, port = 6600): Connexion refusée

.mpd/config

#Music directory
music_directory       "/home/thom/music.d"

#Playlist directory
playlist_directory    "/home/thom/music.d/.mpd.d/playlists.d"

db_file               "/home/thom/music.d/.mpd.d/tag_cache"
log_file              "/home/thom/.mpd.d/mpd.log"
error_file            "/home/thom/.mpd.d/mpd.error"
pid_file              "/home/thom/.mpd.d/mpd.pid"
state_file            "/home/thom/.mpd.d/mpdstate"

# Binding to address and port causing problems in mpd-0.14.2 best to leave
# commented.
user                    "thom"

#bind_to_address       "127.0.0.1"
#port                  "6600"

# Output
audio_output {
 type           "alsa"
 name           "ALSA Device"
}

Thanks for anyhelp.

Last edited by Thom (2012-08-30 16:37:14)

Offline

#2 2012-08-29 21:17:17

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED] Sound + mpd + vlc - one instance

I am a bit surprised your config file is read at all... when you start mpd as a daemon /home/thom/.mpd/config will not be read at all.... (In fact this file is never read, ~/.mpdconf is)

that config file belongs to /etc/mpd.conf in this case.
And yea, error file is not a valid option anymore. remove that line.

If you dont use IPv6 you SHOULD have bind_to_address lines active. simply activate that line.
Apart from that this config looks alright.

Your sound issues have nothing to do with MPD tho. do you have a ~/.asoundrc OR a /etc/asound.conf file?

Last edited by Rasi (2012-08-29 21:18:13)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#3 2012-08-29 21:50:21

Thom
Member
Registered: 2012-05-22
Posts: 72
Website

Re: [SOLVED] Sound + mpd + vlc - one instance

Ok.

I've got tone of small mistake like .mpd/ instead of .mpd.d (I try to create the folder with name which finish by xxxx.d)
The folder playlist not at the good place...

I remove the mpd.conf
I remove the daemon

I put it on the .xinitrc.

Thanks.

Offline

#4 2012-08-30 16:22:41

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED] Sound + mpd + vlc - one instance

so its working now?

If yes, please mark your original post as [SOLVED]


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#5 2012-08-30 16:36:54

Thom
Member
Registered: 2012-05-22
Posts: 72
Website

Re: [SOLVED] Sound + mpd + vlc - one instance

It's not fully working. But it's not the same mistake.
Thanks for helping.

Offline

Board footer

Powered by FluxBB