Ejemplo n.º 1
0
        /// <summary>
        /// Event handler for the DirectPlay Voice PlayerStarted message
        /// </summary>
        public void PlayerStartedHandler(object sender, Voice.PlayerStartedEventArgs args)
        {
            m_NumPlayersTalking++;

            // Show active playback icon
            m_Form.BeginInvoke(new AsyncCall(m_Form.ActivePlayIcon.Show));
        }
Ejemplo n.º 2
0
 private void PlayerStarted(object sender, Voice.PlayerStartedEventArgs dpMessage)
 {
     lock (playerList)
     {
         for (int i = 0; i < playerList.Count; i++)
         {
             if (((VoicePlayer)playerList[i]).PlayerId == dpMessage.Message.SourcePlayerID)
             {
                 VoicePlayer oPlayer = (VoicePlayer)playerList[i];
                 oPlayer.Talking = true;
                 playerList[i]   = oPlayer;
                 break;
             }
         }
     }
     this.BeginInvoke(new BeginInvokeDelegate(this.UpdatePlayerList));
 }