MPD icon indicating copy to clipboard operation
MPD copied to clipboard

Add "fifo" output plugin for Windows binary

Open guizhenwei opened this issue 6 years ago • 4 comments

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.

guizhenwei avatar Oct 28 '17 15:10 guizhenwei

How is this supposed to work on Windows?

MaxKellermann avatar Oct 28 '17 17:10 MaxKellermann

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.

guizhenwei avatar Oct 30 '17 02:10 guizhenwei

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

Pablo1107 avatar Oct 27 '18 05:10 Pablo1107

@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.

MayCXC avatar Feb 21 '21 13:02 MayCXC