Inheritance: WaveOutputPort
Beispiel #1
0
        public Form1()
        {
            InitializeComponent();


            // Setup the audio processing stuff
            fSpeakers = new WaveSpeaker();

            
            IPAddress address = IPAddress.Parse("239.5.7.15");
            IPEndPoint ep = new IPEndPoint(address, 5004);
            fSession = new MultiSession(ep, Guid.NewGuid().ToString(), Environment.UserName, true, true, null);
            
            fAudioChannel = fSession.CreateChannel(PayloadType.dynamicAudio);
            fAudioChannel.FrameReceivedEvent += new RtpStream.FrameReceivedEventHandler(ReceivedAudioEvent);
        }
Beispiel #2
0
        public Form1()
        {
            InitializeComponent();

            IPAddress address = IPAddress.Parse("239.5.7.15");
            IPEndPoint ep = new IPEndPoint(address, 5010);
            fSession = new MultiSession(ep, Guid.NewGuid().ToString(), Environment.UserName, true, true, null);
            fAudioChannel = fSession.CreateChannel(PayloadType.dynamicAudio);

            fMicrophone = new WaveMicrophone(1, 11025, 8, 1.0 / 10.0);
            fSpeakers = new WaveSpeaker(1, 11025, 8, 1.0/10.0) ;

            // Startup a thread to process the audio as it comes in
            stopProcessing = false;
            processingStopped = new AutoResetEvent(false);

            audioProcessor = new Thread(ProcessAudio);
            audioProcessor.IsBackground = true;
            audioProcessor.Start();
        }