Skip to content

Commit

Permalink
Merge pull request #5542 from computezrmle/computezrmle-replace_depre…
Browse files Browse the repository at this point in the history
…cated_audio

Replace deprecated VBoxManage command
  • Loading branch information
AenBleidd authored Mar 20, 2024
2 parents 47fe31d + c849232 commit 3b73f7b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion samples/vboxwrapper/vbox_vboxmanage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,12 @@ int VBOX_VM::create_vm() {
//
vboxlog_msg("Disabling Audio Support for VM.");
command = "modifyvm \"" + vm_name + "\" ";
command += "--audio none ";
if (is_virtualbox_version_newer(7, 0, 4)) {
command += "--audio-enabled off ";
} else {
command += "--audio none ";
}


vbm_popen(command, output, "modifyaudio", false, false);

Expand Down

0 comments on commit 3b73f7b

Please sign in to comment.