Example #1
0
 private void RecordStopped(object sender, Voice.RecordStoppedEventArgs dpMessage)
 {
     lock (playerList)
     {
         for (int i = 0; i < playerList.Count; i++)
         {
             if (((VoicePlayer)playerList[i]).PlayerId == localPlayerId)
             {
                 VoicePlayer oPlayer = (VoicePlayer)playerList[i];
                 oPlayer.Talking = false;
                 playerList[i]   = oPlayer;
                 break;
             }
         }
     }
     this.BeginInvoke(new BeginInvokeDelegate(this.UpdatePlayerList));
 }
Example #2
0
 /// <summary>
 /// Event handler for the DirectPlay Voice RecordStoppedmessage
 /// </summary>
 public void RecordStoppedHandler(object sender, Voice.RecordStoppedEventArgs args)
 {
     // Hide active record icon
     m_Form.BeginInvoke(new AsyncCall(m_Form.ActiveRecordIcon.Hide));
 }