Skip to content

Commit

Permalink
add mic support ubuntujammy (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed Jun 25, 2024
1 parent ef1e9f4 commit 7907d00
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 7907d00

Please sign in to comment.