Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Listen to 5555 UDP and create a FIFO for visualization to work.
Fixes #1
- Loading branch information
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
audio_output { | ||
type "fifo" | ||
name "my_fifo" | ||
path "/tmp/mopidy.fifo" | ||
format "44100:16:2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
udp_fifo() { | ||
# Start listening to UDP on port 5555 and create a FIFO queue out of it, | ||
# used for visualization. See https://github.com/mopidy/mopidy/issues/775 | ||
mkfifo /tmp/mopidy.fifo | ||
while : | ||
do | ||
nc -kluw 1 0.0.0.0 -p 5555 >/tmp/mopidy.fifo 2>/dev/null | ||
sleep 3 | ||
done | ||
} | ||
|
||
udp_fifo & | ||
|
||
# Start actual ncmpcpp | ||
exec ncmpcpp $* |