AudioManager:PlaySound

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
SyntaxPlaySound( * Pointer to the Sound to start playing. Ownership is NOT transferred!
  • The priority of this sound; higher gives it a higher likelyhood of getting mixed compared to lower-priority samples.
  • Distance attenuation scalar: 0 = full volume, 1.0 = max distant, but not silent.
  • The pitch modifier for this sound. 1.0 yields unmodified frequency. )
Description:
Starts playing the next sample of a certain Sound.
ReturnsWhether or not playback of the Sound was successful.




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