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