I run wine inside the chroot, because my main distro is musl-based.
The problem is that whenever I have sound activated in my main system, wine stops seeing my audio device.
Alsa can still play sounds in chroot and
Code: Select all
speaker-test -c2
Here's what wine outputs when I open 'audio' tab and try the test sound button:
Code: Select all
ALSA lib pcm_dmix.c:1077:(snd_pcm_dmix_open) unable to create IPC shm instance
err:ole:CoInitializeEx Attempt to change threading model of this apartment
from multi-threaded to apartment threaded
If I close everything that plays sound (say, mpv) and try again, sound devices are displayed correctly and test sound works with the following output to the console:
Code: Select all
err:ole:CoInitializeEx Attempt to change threading model of this apartment
from multi-threaded to apartment threaded
I mount chroot with the following script
Code: Select all
#!/bin/bash
xhost +local:
mount -t proc proc /chroot/64/void/proc
mount -t sysfs sys /chroot/64/void/sys
mount -o bind /dev /chroot/64/void/dev
mount -t devpts pts /chroot/64/void/dev/pts
mount -o bind /tmp /chroot/64/void/tmp
chroot /chroot/64/void /bin/bash
export XBPS_ARCH=x86_64
Code: Select all
chmod 1777 /dev/shm