Difference between revisions of "Audio Global"

From Virtual World Web Wiki
Jump to: navigation, search
(Documentation for the Audio Global class)
(Documentation for the Audio Global class)
Line 4: Line 4:
  
 
===Methods===
 
===Methods===
:{{CSharp|int? Play(ResourceValue resource)}}
+
:{{CSharp|int? Play(ResourceValue resource, bool loop {{=}} false)}}
  
 
:{{CSharp|int? PlayAudioClip(ResourceValue resource)}}
 
:{{CSharp|int? PlayAudioClip(ResourceValue resource)}}

Revision as of 19:15, 16 July 2018

  • This is a JavaScript global object named Audio

Remarks [edit]

Methods

int? Play(ResourceValue resource, bool loop = false)
int? PlayAudioClip(ResourceValue resource)
void RegisterGlobalAudio(string globalURI, ResourceValue audioClip)
void SetScreenshotSound(ResourceValue clip)
void Stop(int clipID)