On Tue, 5 Apr 2011 07:41:01 +0200
Simon Kagstrom <[email protected]> wrote:
> There is a global despotify session, so it should not be initialized
> until needed.
> ---
> With this, a spotify playlist can be loaded in daemonized mode.
> However, I get no sound output - also not for playing a plain ogg
> file, so I believe there is some general MPD problem as well.
OK, I've looked a bit more at the daemoinzing problem. For despotify,
please apply this patch. It just leaves the initialization until the
plugin is actually used.
For the more general MPD + daemonizing problem, I noticed that it works
fine as long as I have a audio_output section in the configuration
file. If I leave that out and let MPD autodetect audio output (ALSA in
this case), I get no sound.
Moving daemonize(options.daemon); above audio_output_all_init() as
in the diff below also gives me audio output, but I suppose that might
have more repercussions.
// Simon
diff --git a/src/main.c b/src/main.c
index 2cb7dc5..f502321 100644
--- a/src/main.c
+++ b/src/main.c
@@ -368,6 +368,8 @@ int mpd_main(int argc, char *argv[])
initialize_decoder_and_player();
volume_init();
initAudioConfig();
+ daemonize(options.daemon);
+
audio_output_all_init(global_player_control);
client_manager_init();
replay_gain_global_init();
@@ -380,8 +382,6 @@ int mpd_main(int argc, char *argv[])
playlist_list_global_init();
- daemonize(options.daemon);
-
setup_log_output(options.log_stderr);
initSigHandlers();
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Musicpd-dev-team mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team