Skip to content

Commit

Permalink
CI: enable virtual audio sink for soundd (#31120)
Browse files Browse the repository at this point in the history
* enable virtual sound

* mv install to dockerfile

* cleaner

---------

Co-authored-by: Justin Newberry <[email protected]>
  • Loading branch information
bongbui321 and jnewb1 authored Jan 23, 2024
1 parent 88757c1 commit 403610e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.openpilot_base
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV PYTHONUNBUFFERED 1

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends sudo tzdata locales ssh && \
apt-get install -y --no-install-recommends sudo tzdata locales ssh pulseaudio && \
rm -rf /var/lib/apt/lists/*

RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
Expand Down
10 changes: 10 additions & 0 deletions selfdrive/test/setup_vsound.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

{
#start pulseaudio daemon
sudo pulseaudio -D

# create a virtual null audio and set it to default device
sudo pactl load-module module-null-sink sink_name=virtual_audio
sudo pactl set-default-sink virtual_audio
} > /dev/null 2>&1

0 comments on commit 403610e

Please sign in to comment.