diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-12-30 20:10:00 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-12-30 20:10:00 -0200 |
commit | 1446a4e71e086295fcef5ed42339e34ed83a69d4 (patch) | |
tree | e2ed1a26dbd2667ccc0656537357be43c65d6822 | |
parent | 48b12bda534020898c80553a610796a3b6a33a0d (diff) | |
download | kvmx-1446a4e71e086295fcef5ed42339e34ed83a69d4.tar.gz kvmx-1446a4e71e086295fcef5ed42339e34ed83a69d4.tar.bz2 |
Provide default value for sound option
-rwxr-xr-x | kvmx | 6 | ||||
-rw-r--r-- | kvmxfile | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -390,7 +390,11 @@ function kvmx_up { spice_opts="$spice_opts -chardev spicevmc,id=spicechannel0,name=vdagent" fi - if [ -z "$sound" ] || [ "$sound" != "0" ]; then + if [ "$sound" != "0" ]; then + if [ -z "$sound" ]; then + sound="ac97" + fi + sound_opts="-soundhw $sound" fi @@ -84,7 +84,7 @@ run_xephyr="0" # Sound #sound="0" -sound="ac97" +#sound="ac97" # Set additional hostfwd mappings #port_mapping="hostfwd=tcp:127.0.0.1:8080-:80,hostfwd=tcp:127.0.0.1:8443-:443" |