Skip to content

Commit e24d68a

Browse files
Fix audio in headless containers with ALSOFT_DRIVERS=null
OpenAL needs an audio backend to render sound into buffers. In containers without audio hardware, it silently fails. Setting ALSOFT_DRIVERS=null tells OpenAL-soft to use its null output driver, allowing ViZDoom to capture audio into buffers for WebSocket streaming. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 715ede2 commit e24d68a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ echo "==> Building client..."
3535
npx vite build --outDir ../dist 2>/dev/null
3636

3737
# Start production server (single process, no proxy overhead)
38+
# ALSOFT_DRIVERS=null lets OpenAL render audio in headless containers without real audio hardware
3839
echo "==> Starting server on port 3000..."
39-
IS_PRODUCTION=true python3 server.py
40+
ALSOFT_DRIVERS=null IS_PRODUCTION=true python3 server.py

0 commit comments

Comments
 (0)