예제 #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;
 }