mirror of
https://github.com/churchers/vm-bhyve.git
synced 2025-12-11 01:10:01 +01:00
Add support for defining a sound recording device.
This commit is contained in:
@@ -675,11 +675,17 @@ vm::bhyve_device_mouse(){
|
||||
}
|
||||
|
||||
vm::bhyve_device_sound(){
|
||||
local _play
|
||||
local _play _rec
|
||||
config::get "_play" "sound_play" "/dev/dsp0"
|
||||
config::get "_rec" "sound_rec"
|
||||
|
||||
if config::yesno "sound"; then
|
||||
_devices="${_devices} -s ${_slot}:0,hda,play=${_play}"
|
||||
|
||||
if [ -n ${_rec} ]; then
|
||||
_devices="${_devices},rec=${_rec}"
|
||||
fi
|
||||
|
||||
_slot=$((_slot + 1))
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user