jails WINE dummy audio input device in jail

I'm using a 32-bit jail for running 32-bit WINE 8 (the latest version that can do 32-bit on a 64-bit system seems to be WINE 7, which doesn't work properly with a program I'm using).
I've managed to compile WINE 8 from ports, and it works with SSH and X11 forwarding, but a program I need fails to start unless there is an audio input device (AFAICT). I don't actually need a real audio input, anything that WINE thinks is an input (even if there's no audio on it) will suffice. I've tried passing through my /dev/dsp stuff with /etc/devfs.rules, but that didn't work. How would I go about doing this? winecfg says there's no output driver, and there's not even a /dev/sndstat.
 
Well I recompiled WINE with ALSA instead of OSS, and now winecfg says it's loaded the driver, but now it complains that it can't find /dev/mixer (I assume ALSA uses an OSS backend). Any way to make ALSA use a null, dummy backend?
 
I think I managed to do it, I put this in my /etc/devfs.rules:
Code:
# Devices usually found in a desktop jail for sound.
#
[devfsrules_desktop_jail=6]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add path zfs unhide
add path 'mixer*' unhide
add path 'dsp*' unhide
And put this in my /etc/jail.conf:
Code:
devfs_ruleset=6;
 
Back
Top