AudioManager:SetSoundAttenuation

From Data Realms Wiki

Revision as of 00:44, 28 June 2012 by Beautifybot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
SyntaxSetSoundAttenuation( * A pointer to a Sound object. Ownership IS NOT transferred!
  • Distance attenuation scalar: 0 = full volume, 1.0 = max distant, but not silent. )
Description:
Sets/updates the distance attenuation for a specific sound. Will only have an effect if the sound is currently being played.
ReturnsWhetehr a smaple of the Sound is currently being played by any of the channels, and the attenuation was successfully set.




Example
DescriptionPlaceholder!
Code
  1. for k,v in pairs(PagesWithoutExamples) do
  2.     v.MakeExample(NoErrors);
  3. end
OutputPlaceholder!
Personal tools