Skip to content

Commit 977b759

Browse files
committed
Improve performance of alsaloop and pulse wait
1 parent 9f6f265 commit 977b759

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

M8/alsaloop_wait

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ if [ "$var" = "$var2" ]
1414
else
1515
if [ "$var2" = "$var3" ]
1616
then
17-
sleep 1
1817
alsaloop -P hw:0,0 -C hw:1,0 -t 200000 -A 5 --rate 44100 --sync=0 -T -1 -d
1918
# if midi is connected it will push the M8 to id #2 so one of these will succeed.
2019
alsaloop -P hw:0,0 -C hw:2,0 -t 200000 -A 5 --rate 44100 --sync=0 -T -1 -d
2120
var3=$(ps aux|grep [a]lsaloop|grep -v alsaloop_wait)
21+
sleep 1
22+
else
23+
sleep 2
2224
fi
2325
fi
2426

M8/pulse_wait

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ if [ "$var" = "$var2" ]
1414
else
1515
if [ "$var2" = "$var3" ]
1616
then
17-
sleep 1
1817
sudo pulseaudio --start --file=pulseaudio_config.pa
1918
var3=$(ps aux|grep [p]ulseaudio_config)
19+
sleep 1
20+
else
21+
sleep 2
2022
fi
2123
fi
2224

0 commit comments

Comments
 (0)