Example #1
0
 private void Ring(object sender,JointHittingEventArgs e)
 {
     if(!secondBuffer.Status.Playing){
         secondBuffer.Play(0,BufferPlayFlags.Default);
         secondBuffer.Volume=0;
     }else secondBuffer.Stop();
     return;
 }
Example #2
0
 protected void OnHitting(JointHittingEventArgs e)
 {
     if(e!=null&&JointHitting!=null) JointHitting(this,e);
     return;
 }
Example #3
0
 private void EnableMute(object sender,JointHittingEventArgs e)
 {
     prevvolume=secondBuffer.Volume;
     return;
 }