Ejemplo n.º 1
0
 private void RecordStarted(object sender, Voice.RecordStartedEventArgs dpMessage)
 {
     lock (playerList)
     {
         for (int i = 0; i < playerList.Count; i++)
         {
             if (((VoicePlayer)playerList[i]).PlayerId == localPlayerId)
             {
                 VoicePlayer oPlayer = (VoicePlayer)playerList[i];
                 oPlayer.Talking = true;
                 playerList[i]   = oPlayer;
                 break;
             }
         }
     }
     this.BeginInvoke(new BeginInvokeDelegate(this.UpdatePlayerList));
 }
Ejemplo n.º 2
0
        //---------------------------------------------------------------------
        #endregion // DirectPlay Object Initializations

        #region DirectPlay Voice Event Handlers
        //---------------------------------------------------------------------

        /// <summary>
        /// Event handler for the DirectPlay Voice RecordStarted message
        /// </summary>
        public void RecordStartedHandler(object sender, Voice.RecordStartedEventArgs args)
        {
            // Show active record icon
            m_Form.BeginInvoke(new AsyncCall(m_Form.ActiveRecordIcon.Show));
        }