diff --git a/3rdparty/mmu_man/onlinedemo/haiku.php b/3rdparty/mmu_man/onlinedemo/haiku.php
index 630cf134de..a708781495 100755
--- a/3rdparty/mmu_man/onlinedemo/haiku.php
+++ b/3rdparty/mmu_man/onlinedemo/haiku.php
@@ -379,7 +379,7 @@ function output_options_form()
echo "\n\n";
- $enable_sound = 0;
+ $enable_sound = 1;
echo "
";
@@ -490,9 +490,18 @@ function start_qemu()
return $idx;
}
$pidfile = make_qemu_pidfile_name($idx);
- $cmd = QEMU_BIN . " " . QEMU_ARGS;
+ $cmd = '';
+ if (isset($_GET['sound'])) {
+ $cmd .= "QEMU_AUDIO_DRV=twolame ";
+ //$cmd .= "QEMU_TWOLAME_SAMPLES=" . 4096 . " ";
+ $cmd .= "QEMU_TWOLAME_PORT=" . audio_port() . " ";
+ }
+ $cmd .= QEMU_BIN . " " . QEMU_ARGS;
if ($cpucount > 1)
$cmd .= " -smp " . $cpucount;
+ if (isset($_GET['sound'])) {
+ $cmd .= " -soundhw hda";
+ }
if (isset($_GET['serial'])) {
$cmd .= " -serial telnet::";
$cmd .= (SERIALPORTBASE + qemu_slot());
@@ -582,6 +591,9 @@ function output_vnc_info_file()
if (!is_my_session_valid())
die("Bad request");
+ header("Pragma: public");
+ header("Expires: 0");
+ header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-type: application/x-vnc");
header('Content-Disposition: attachment; filename="onlinedemo.vnc"');
@@ -598,40 +610,89 @@ function output_vnc_info_file()
function output_audio_player_code($external_only=false)
{
- if (true)
+ if (!isset($_GET['sound']))
return;
$port = audio_port();
$url = "http://" . $_SERVER['HTTP_HOST'] . ":$port/";
$icy = "icy://" . $_SERVER['HTTP_HOST'] . ":$port/";
+ $use_html5 = true;
+
if (!$external_only) {
- echo "