-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
playback via mpv – sox may not see devices due to some bug
- Loading branch information
1 parent
5207649
commit d7539d2
Showing
7 changed files
with
88 additions
and
27 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
brew "overmind" | ||
brew "sox" | ||
cask "blackhole-16ch" | ||
cask "blackhole-2ch" | ||
brew "mpv" | ||
# cask "blackhole-16ch" | ||
# cask "blackhole-2ch" |
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 |
---|---|---|
@@ -1,9 +1,2 @@ | ||
host: PI_IP=apaw.local; sleep 3; sox -V1 --type coreaudio "BlackHole 16ch" --type raw --rate 44100 --encoding signed-integer --bits 24 --channels 2 - remix 1 2 | nc $PI_IP 2150 | sox -V1 --type raw --rate 44100 --encoding signed-integer --bits 24 --channels 2 - --type coreaudio "BlackHole 2ch" | ||
pi: ssh -S none root@pi 'killall -v -s SIGKILL nc arecord aplay; nice -n -20 arecord --verbose --disable-resample --disable-channels --disable-format --disable-softvol --mmap --nonblock --rate 44100 --format S24_3LE --channels 2 --file-type raw --device hw:CARD=UAC2Gadget,DEV=0 --buffer-time 75000 - | nice -n -20 nc -l 2150 -k | nice -n -20 aplay --verbose --disable-resample --disable-channels --disable-format --disable-softvol --mmap --nonblock --rate 44100 --format S24_3LE --channels 2 --file-type raw --device hw:CARD=UAC2Gadget,DEV=0 --buffer-time 75000 -' | ||
|
||
# an attempt of monitoring via HDMI output | ||
# fixme: still too much latency... | ||
#pi: ssh -S none root@pi 'killall -v -s SIGKILL nc arecord aplay; nice -n -20 arecord --verbose --disable-resample --disable-channels --disable-format --disable-softvol --mmap --nonblock --rate 44100 --format S24_3LE --channels 2 --file-type raw --device hw:CARD=UAC2Gadget,DEV=0 - | nice -n -20 stdbuf -i0 -o0 -e0 tee >(nice -n -19 nc -l 2150 -k | nice -n -19 aplay --verbose --disable-resample --disable-channels --disable-format --disable-softvol --mmap --nonblock --rate 44100 --format S24_3LE --channels 2 --file-type raw --device hw:CARD=UAC2Gadget,DEV=0 -) >(nice -n -20 stdbuf -i0 -o0 -e0 aplay --verbose --disable-resample --disable-channels --disable-softvol --mmap --nonblock --rate 44100 --format S24_3LE --channels 2 --file-type raw --device plughw:CARD=b1,DEV=0 --buffer-time 50000 -) > /dev/null' | ||
|
||
# fixme: why sshd suddenly exits? | ||
#ipad: trap 'ssh ipad "killall cat socat"' EXIT > /dev/null; ssh ipad ./pi-socat.sh | ||
host: PI_IP=apaw.local; sleep 5; sox -V1 --type coreaudio "RpIn" --type wav --rate 44100 --encoding signed-integer --bits 24 --channels 2 - | nc $PI_IP 2150 | mpv --no-config --audio-device=coreaudio/RpOut_UID --profile=low-latency - | ||
pi: ssh -S none root@pi 'killall -v -s SIGKILL nc arecord aplay; nice -n -20 arecord --verbose --disable-resample --disable-channels --disable-format --disable-softvol --mmap --nonblock --rate 44100 --format S24_3LE --channels 2 --file-type wav --device hw:CARD=UAC2Gadget,DEV=0 --buffer-time 100000 - | nice -n -20 nc -l 2150 | nice -n -20 aplay --verbose --disable-resample --disable-channels --disable-format --disable-softvol --mmap --nonblock --rate 44100 --format S24_3LE --channels 2 --file-type wav --device hw:CARD=UAC2Gadget,DEV=0 --buffer-time 100000 -' |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/bin/zsh | ||
|
||
scp rc.local root@pi:/etc/rc.local | ||
scp usb.sh root@pi:/root/usb.sh | ||
ssh root@pi reboot | ||
PI=root@pi | ||
scp rc.local $PI:/etc/rc.local | ||
scp usb.sh $PI:/root/usb.sh | ||
ssh $PI reboot |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# run via https://ish.app | ||
cat /dev/location > /dev/null & # granting "allow always" enables running in background | ||
socat TCP-LISTEN:2122,bind=0.0.0.0,fork,su=nobody,reuseaddr TCP:169.254.1.1:22 & | ||
socat TCP-LISTEN:2150,bind=0.0.0.0,fork,su=nobody,reuseaddr TCP:169.254.1.1:2150 | ||
socat TCP-LISTEN:2122,bind=0.0.0.0,fork,su=nobody,reuseaddr,nodelay TCP:169.254.1.1:22,nodelay & | ||
socat TCP-LISTEN:2150,bind=0.0.0.0,fork,su=nobody,reuseaddr,nodelay TCP:169.254.1.1:2150,nodelay & |
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