MusicPlayerDaemon / MPD

Music Player Daemon
https://www.musicpd.org/
GNU General Public License v2.0
2.17k stars 352 forks source link

Add "fifo" output plugin for Windows binary #135

Open guizhenwei opened 6 years ago

guizhenwei commented 6 years ago

Currently no fifo output plugin in the official released MPD.exe for windows platform. It would be good to have this plugin enabled in the default release for win32.

MaxKellermann commented 6 years ago

How is this supposed to work on Windows?

guizhenwei commented 6 years ago

I'm sorry for the uncertain. After a bit search, i found this: https://en.wikipedia.org/wiki/Named_pipe (Section: In Windows)

I'm still not sure if it's feasible. If not, please close this issue.

Pablo1107 commented 5 years ago

How can this be implemented? I'm trying to get cava working with mpd fifo output in WSL.

MayCXC commented 3 years ago

@Pablo1107 This can be done by piping the "Stereo Mix" playback device in windows to a fifo from socat from fmedia.exe from wsl. First go to "Sounds" > playback > Stereo Mix > Properties > Listen > make sure "Listen to this device" is unchecked. Then you can start the fifo with socat PIPE:/tmp/mpd.fifo EXEC:"/mnt/d/Applications/fmedia/fmedia.exe --notui --record --dev-loopback=1 --format=int16 --rate=44100 --channels=2 -o @stdout.wav". This pipes in all system audio though, not just mpd, I use it with ncmpcpp like the instructions here.