Skip to content

Commit

Permalink
Master mic (#71)
Browse files Browse the repository at this point in the history
* add mic support master

* refactor to be in sync with other bases
  • Loading branch information
thelamer authored Jun 25, 2024
1 parent dda46a7 commit f8f717d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-kclient/run
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
#!/usr/bin/with-contenv bash

# Mic Setup
if [ ! -f '/dev/shm/mic.lock' ]; then
until [ -f /defaults/pid ]; do
sleep .5
done
s6-setuidgid abc with-contenv pactl \
load-module module-pipe-source \
source_name=virtmic \
file=/defaults/mic.sock \
source_properties=device.description=LSIOMic \
format=s16le \
rate=44100 \
channels=1
s6-setuidgid abc with-contenv pactl \
set-default-source virtmic
touch /dev/shm/mic.lock
fi

# NodeJS wrapper
cd /kclient
exec s6-setuidgid abc \
Expand Down

0 comments on commit f8f717d

Please sign in to comment.