From 812c4a2e0971b48953e54b9086c0b0f70c2dd7d5 Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Sun, 20 Sep 2020 10:47:23 +0100 Subject: [PATCH] pulseaudio example AppleALC does not support the codec out of the box and I have been unable to work through https://osy.gitbook.io/hac-mini-guide/details/hda-fix to figure out how to make it appear. The controller does work, but without the codec driver support there no soundcard is present to macOS --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 76be75d..f0ab46b 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,15 @@ xhost + docker run --device /dev/kvm --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh ``` +PulseAudio for sound (note neither [AppleALC](https://github.com/acidanthera/AppleALC) and varying [`alcid`](https://dortania.github.io/OpenCore-Post-Install/universal/audio.html) or [VoodooHDA-OC](https://github.com/chris1111/VoodooHDA-OC) have [codec support](https://osy.gitbook.io/hac-mini-guide/details/hda-fix#hda-codec) though [IORegistryExplorer](https://github.com/vulgo/IORegistryExplorer) does show the controller component working): +```bash +docker run --device /dev/kvm -e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket -v /run/user/$(id -u)/pulse/native:/tmp/pulseaudio.socket -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx +``` +PulseAudio debugging: +```bash +docker run --device /dev/kvm -e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket -v /run/user/$(id -u)/pulse/native:/tmp/pulseaudio.socket -v /tmp/.X11-unix:/tmp/.X11-unix -e PULSE_SERVER=unix:/tmp/pulseaudio.socket sickcodes/docker-osx pactl list +``` + Alternative run, thanks @roryrjb ```bash