Empeld
Empeld plugin documentation.
pluginbase.Objects.Audio.AudioManagerExtensions Class Reference

Static Public Member Functions

static ISampleInstance PlayAudio (this IAudioManager audio, SoundDescriptor sound, Vector3d position)
 Immediately plays audio at a position More...
 

Member Function Documentation

◆ PlayAudio()

static ISampleInstance pluginbase.Objects.Audio.AudioManagerExtensions.PlayAudio ( this IAudioManager  audio,
SoundDescriptor  sound,
Vector3d  position 
)
static

Immediately plays audio at a position

Parameters
audioAudio.
soundSound.
positionPosition.
14  {
15  var sfx = audio.LoadDescriptorInstance(sound);
16  if (sfx != null)
17  {
18  sfx.Position = position;
19  sfx.Play();
20  }
21  return sfx;
22  }

The documentation for this class was generated from the following file: