コード例 #1
0
 static void Disconnect()
 {
     waveIn.DataAvailable -= waveIn_DataAvailable;
     waveIn.StopRecording();
     udpSender.Close();
     waveIn.Dispose();
     selectedCodec.Dispose();
 }
コード例 #2
0
        public void Disconnect()
        {
            if (connected)
            {
                connected = false;
                //audioSender.Dispose();

                // a bit naughty but we have designed the codecs to support multiple calls to Dispose,
                // recreating their resources if Encode/Decode called again
                selectedCodec.Dispose();
            }
        }
コード例 #3
0
        private void Disconnect()
        {
            if (connected)
            {
                connected = false;

                player.Dispose();
                audioSender.Dispose();
                selectedCodec.Dispose();
                //new NetworkChatPanel();
                saveIpPort();
                //System.Windows.Forms.Application.Restart();
            }
        }
コード例 #4
0
        private void Disconnect()
        {
            if (connected)
            {
                connected             = false;
                waveIn.DataAvailable -= waveIn_DataAvailable;
                waveIn.StopRecording();
                waveOut.Stop();

                udpSender.Close();
                udpListener.Close();
                waveIn.Dispose();
                waveOut.Dispose();

                // a bit naughty but we have designed the codecs to support multiple calls to Dispose,
                // recreating their resources if Encode/Decode called again
                selectedCodec.Dispose();
            }
        }
コード例 #5
0
 static void Disconnect()
 {
     udpListener.Close();
     waveOut.Dispose();
     selectedCodec.Dispose();
 }