AudioManager:SetSoundAttenuation

From Data Realms Wiki

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