Example #1
0
 public void Play(double SampleStartPosition)
 {
     this.SampleOffset = SampleStartPosition;
     if (instrument != null)
     {
         instrument.On();
     }
     if (effect != null)
     {
         effect.On();
     }
     this.CurrentChannel.Volume = Volume;
     XAudio.Play();
     isRunning = true;
 }
Example #2
0
 void Resume()
 {
     XAudio.Play();
     isPaused = false;
 }