Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mpd on a server without a sound card installed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
joe82
n00b
n00b


Joined: 10 Feb 2006
Posts: 23
Location: Ludwigsburg, Germany

PostPosted: Fri Sep 14, 2007 7:50 pm    Post subject: mpd on a server without a sound card installed Reply with quote

Hi,

I want to run the Music Player Daemon (mpd) on my home server, where all the home directories are located. They are exported via nfs and samba, so that my linux box and my fathers windows box can access the music and the other data. Everything works fine so far, except that I really don't like the iTunes crap my father is using.

So I thought about installing mpd and running a client on every box to access the music files. The problem ist that the server is without a sound card installed.

I installed mpd with pulseaudio use flag and I can see my flac files in mpc on my client. Sadly the playback doesn't work.

Is there a possibility to manage all that without installing a sound card? Do I need alsa installed or is it possible to achieve playback with pulseaudio only? When starting pulseadio with the init-script I get errors in /var/log/messages. I compiled it with hal support but neither load-module module-hal-detect nor load-module module-detect works.

Thanks for your reply!

Joe


My config files without all the commented stuff:

/etc/pulse/default.pa
Code:

load-module module-hal-detect
load-module module-esound-protocol-unix
load-module module-native-protocol-unix
load-module module-native-protocol-tcp
load-module module-zeroconf-publish
load-module module-volume-restore
load-module module-rescue-streams
.nofail
load-sample x11-bell /usr/share/sounds/gtk-events/activate.wav
load-module module-x11-bell sample=x11-bell
load-module module-x11-publish
load-module module-gconf


/etc/mpd.conf
Code:

music_directory                 "/var/lib/mpd/music"
playlist_directory              "/var/lib/mpd/playlists"
db_file                         "/var/lib/mpd/database"
log_file                        "/var/log/mpd/mpd.log"
error_file                      "/var/log/mpd/mpd.error.log"
pid_file                        "/var/run/mpd/mpd.pid"
state_file                      "/var/lib/mpd/state"
user                            "mpd"
bind_to_address                 "192.168.0.1"
port                            "6600"
zeroconf_name                   "Music Player"
audio_output {
        type    "pulse"
        name    "My MPD PulseAudio Output"
}


/var/log/messages
Code:

Sep 14 19:32:28 Noebels-Server pulseaudio[13317]: module.c: Failed to open module "module-hal-detect": module-hal-detect.so: cannot open shared object file: No such file or directory
Sep 14 19:32:28 Noebels-Server pulseaudio[13317]: main.c: Module load failed.
Sep 14 19:32:28 Noebels-Server pulseaudio[13317]: main.c: failed to initialize daemon.
Sep 14 19:32:28 Noebels-Server pulseaudio[13316]: main.c: daemon startup failed.
Sep 14 20:24:39 Noebels-Server pulseaudio[17521]: module.c: Failed to open module "module-hal-detect": module-hal-detect.so: cannot open shared object file: No such file or directory
Sep 14 20:24:39 Noebels-Server pulseaudio[17521]: main.c: Module load failed.
Sep 14 20:24:39 Noebels-Server pulseaudio[17521]: main.c: failed to initialize daemon.
Sep 14 20:24:39 Noebels-Server pulseaudio[17520]: main.c: daemon startup failed.
Sep 14 20:32:00 Noebels-Server pulseaudio[17617]: module-detect.c: failed to detect any sound hardware.
Sep 14 20:32:00 Noebels-Server pulseaudio[17617]: module.c: Failed to load  module "module-detect" (argument: ""): initialization failed.
Sep 14 20:32:00 Noebels-Server pulseaudio[17617]: main.c: Module load failed.
Sep 14 20:32:00 Noebels-Server pulseaudio[17617]: main.c: failed to initialize daemon.
Sep 14 20:32:00 Noebels-Server pulseaudio[17616]: main.c: daemon startup failed.
Sep 14 20:33:21 Noebels-Server pulseaudio[17796]: module.c: Failed to open module "module-hal-detect": module-hal-detect.so: cannot open shared object file: No such file or directory
Sep 14 20:33:21 Noebels-Server pulseaudio[17796]: main.c: Module load failed.
Sep 14 20:33:21 Noebels-Server pulseaudio[17796]: main.c: failed to initialize daemon.
Sep 14 20:33:21 Noebels-Server pulseaudio[17795]: main.c: daemon startup failed.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Sep 14, 2007 7:59 pm    Post subject: Reply with quote

make sure hald is running. Or just build pulseaudio without hal support. Or just use icecast :)
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum