Пример #1
0
 public Sound Play3D(string fileName, Vector3 position)
 {
     MutableSound sound = new MutableSound();
     TaskQueue.Add(new Play3DTask(this, fileName, sound, position));
     return sound;
 }
Пример #2
0
 public Play3DTask(SoundEngine soundEngine, string fileName, MutableSound sound, Vector3 position)
     : base(soundEngine, fileName, sound)
 {
     this.Position = position;
 }
Пример #3
0
 public Sound Play2D(string fileName)
 {
     MutableSound sound = new MutableSound();
     TaskQueue.Add(new Play2DTask(this, fileName, sound));
     return sound;
 }
Пример #4
0
 public Play2DTask(SoundEngine soundEngine, string fileName, MutableSound sound)
     : base(soundEngine)
 {
     this.FileName = fileName;
     this.Sound = sound;
 }