GetSoundGain

(Difference between revisions)
Jump to: navigation, search
(Created page with "Get the sound gain. Example, print the sound gain in the console: Sound = getObject("Sound") function onSceneUpdate() SndGain = getSoundGain(Sound) i...")
 
Line 8: Line 8:
 
         if isKeyPressed("A") then print(SndGain) end
 
         if isKeyPressed("A") then print(SndGain) end
 
     end
 
     end
 +
 +
[[Category:Lua scripting]]

Revision as of 19:08, 4 February 2014

Get the sound gain.

Example, print the sound gain in the console:

   Sound = getObject("Sound")
   function onSceneUpdate()
       SndGain = getSoundGain(Sound)
       if isKeyPressed("A") then print(SndGain) end
   end
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox