Skip to content

Commit f8f717d

Browse files
authored
Master mic (#71)
* add mic support master * refactor to be in sync with other bases
1 parent dda46a7 commit f8f717d

File tree

1 file changed

+18
-0
lines changed
  • root/etc/s6-overlay/s6-rc.d/svc-kclient

1 file changed

+18
-0
lines changed

root/etc/s6-overlay/s6-rc.d/svc-kclient/run

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
#!/usr/bin/with-contenv bash
22

3+
# Mic Setup
4+
if [ ! -f '/dev/shm/mic.lock' ]; then
5+
until [ -f /defaults/pid ]; do
6+
sleep .5
7+
done
8+
s6-setuidgid abc with-contenv pactl \
9+
load-module module-pipe-source \
10+
source_name=virtmic \
11+
file=/defaults/mic.sock \
12+
source_properties=device.description=LSIOMic \
13+
format=s16le \
14+
rate=44100 \
15+
channels=1
16+
s6-setuidgid abc with-contenv pactl \
17+
set-default-source virtmic
18+
touch /dev/shm/mic.lock
19+
fi
20+
321
# NodeJS wrapper
422
cd /kclient
523
exec s6-setuidgid abc \

0 commit comments

Comments
 (0)