You are not logged in.

#1 2014-06-02 00:15:46

Kummo666
Member
Registered: 2013-06-09
Posts: 15

[Solved] MPD - Ncmpcpp - No audio after enabling the FFT generation

Hello,
I'm a new(and awesomed) Mpd user, I discovered the Ncmpcpp, and following the wiki I tried to enable the visualizations,
But if I add the config lines to  /etc/mpd.conf:

audio_output {
    type                    "fifo"
    name                    "my_fifo"
    path                    "/tmp/mpd.fifo"
    format                  "44100:16:2"
}

And restarts mpd.service the audio stops working, now commenting out that audio_output and restarting again I get the audio.

How can I find the root cause of the problem?

Last edited by Kummo666 (2014-06-04 23:38:26)

Offline

#2 2014-06-02 00:35:31

ids1024
Member
From: California
Registered: 2013-08-16
Posts: 243
Website

Re: [Solved] MPD - Ncmpcpp - No audio after enabling the FFT generation

Try setting log_file in mpd.conf and see what it writes to the log.


"Only wimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it."—Linus Torvalds
s/ftp/git/

https://iandouglasscott.com | https://github.org/ids1024 | https://keybase.io/ids1024

Offline

#3 2014-06-02 00:54:57

Kummo666
Member
Registered: 2013-06-09
Posts: 15

Re: [Solved] MPD - Ncmpcpp - No audio after enabling the FFT generation

Did it but nothing relevant in the logs, also it's like it's working fine cause the logs shows the next played song.

Offline

#4 2014-06-02 01:19:42

ids1024
Member
From: California
Registered: 2013-08-16
Posts: 243
Website

Re: [Solved] MPD - Ncmpcpp - No audio after enabling the FFT generation

Do you have another audio_output in mpd.conf? If not, it will only use the one you have configured.


"Only wimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it."—Linus Torvalds
s/ftp/git/

https://iandouglasscott.com | https://github.org/ids1024 | https://keybase.io/ids1024

Offline

#5 2014-06-02 01:26:40

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [Solved] MPD - Ncmpcpp - No audio after enabling the FFT generation

Does ncmpcpp list all defined outputs? Does the fifo exists/gets created? Ncmpcpp has its own error.log.
Edit: missed the previous post.

Last edited by emeres (2014-06-02 01:28:13)

Offline

#6 2014-06-02 10:47:34

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [Solved] MPD - Ncmpcpp - No audio after enabling the FFT generation

could be that the audio output is disabled, double check in ncmpcpp to be sure

Offline

#7 2014-06-04 23:36:27

Kummo666
Member
Registered: 2013-06-09
Posts: 15

Re: [Solved] MPD - Ncmpcpp - No audio after enabling the FFT generation

yes, looks like the problem is that I don't have another audio_output defined, this is the status of the mpd service when I start it without the fifo output:

Jun 04 20:26:18 netarch mpd[560]: output: No 'audio_output' defined in config file
Jun 04 20:26:18 netarch mpd[560]: output: Attempt to detect audio output device
Jun 04 20:26:18 netarch mpd[560]: output: Attempting to detect a alsa audio device
Jun 04 20:26:18 netarch mpd[560]: output: Successfully detected a alsa audio device

So I added the following lines to the mpd.conf:

audio_output {
        type                    "alsa"
        name                    "Sound Card"
        options                 "dev=dmixer"
}

audio_output {
    type                    "fifo"
    name                    "my_fifo"
    path                    "/tmp/mpd.fifo"
    format                  "44100:16:1"
}

Thanks for your help!

Offline

Board footer

Powered by FluxBB