public Sound Play3D(string fileName, Vector3 position) { MutableSound sound = new MutableSound(); TaskQueue.Add(new Play3DTask(this, fileName, sound, position)); return sound; }
public Play3DTask(SoundEngine soundEngine, string fileName, MutableSound sound, Vector3 position) : base(soundEngine, fileName, sound) { this.Position = position; }
public Sound Play2D(string fileName) { MutableSound sound = new MutableSound(); TaskQueue.Add(new Play2DTask(this, fileName, sound)); return sound; }
public Play2DTask(SoundEngine soundEngine, string fileName, MutableSound sound) : base(soundEngine) { this.FileName = fileName; this.Sound = sound; }