Björn Ritzl 5 роки тому
батько
коміт
8971dcff1d
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      examples/sound/music/music.script

+ 2 - 2
examples/sound/music/music.script

@@ -1,7 +1,7 @@
 function init(self)
-    msg.post("#music", "play_sound") -- <1>
+    sound.play("#music", { gain = 1.0, pan = 0 }) -- <1>
 end
 
 --[[
-1. Send message to component "#music" telling it to play its sound.
+1. Tell the component "#music" to start playing its sound. The sound will be played with gain 1.0 (max volume) and pan 0.0 (equal left-right channel)
 --]]