aggiunta playsound
[brisk.git] / web / brisk.phh
index dae746b..51d8d3a 100644 (file)
@@ -1263,6 +1263,11 @@ function show_table(&$bri, &$user, $sendstep, $is_transition, $is_again)
   if (!$is_again) 
     $ret .= table_wellcome($user);
 
+  if ($is_transition && !$is_again) { // appena seduti al tavolo, play della mucca
+    $ret .= playsound("cow.mp3");
+  }
+
+
   /* CARDS */
   if ($is_transition) { //  && $user->subst ==  "asta" superfluo
     $ret .= "|";
@@ -1521,4 +1526,9 @@ function validate_name($name)
   return (FALSE);
 }
 
+function playsound($filename)
+{
+  return (sprintf('playsound("flasou", "%s");', $filename));
+}
+
 ?>