GetSoundGain
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
| Line 10: | Line 10: | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
| + | [[Category:Lua function]] | ||
| + | [[Category:Sound]] | ||
Revision as of 18:34, 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