Class Sound3D
- Namespace
- OmegaEngine.Audio
- Assembly
- OmegaEngine.dll
A memory-cached sound that is played on-demand simulating a position in 3D-space.
public class Sound3D : Sound, IDisposable, IAudio, IPositionable
- Inheritance
-
Sound3D
- Implements
- Inherited Members
- Extension Methods
Constructors
Sound3D(XSound)
Sets up a new Sound based on an XSound asset.
public Sound3D(XSound sound)
Parameters
Properties
Position
The sound's position in world space
public DoubleVector3 Position { get; set; }
Property Value
Methods
OnDispose()
Hook that is called when the object needs to dispose its internal resources.
protected override void OnDispose()
StartPlayback(bool)
Starts the sound playback
public override void StartPlayback(bool looping)
Parameters
looping
bool
StopPlayback()
Stops the sound playback
public override void StopPlayback()