/// <summary> /// RTP Client for receiving an RTP stream containing a WAVE audio stream /// </summary> /// <param name="port">The port to listen on</param> public RTPReceiver(int port) { Console.WriteLine(" [RTPClient] Loading..."); this.port = port; // Initialize the audio stream that will hold the data audioStream = new SpeechStreamer(AUDIO_BUFFER_SIZE); Console.WriteLine(" Done"); }
/// <summary> /// RTP Client for receiving an RTP stream containing a WAVE audio stream /// </summary> /// <param name="host">The host to send data to</param> /// <param name="port">The port to send data on</param> public RTPServer(string host, int port) { Console.WriteLine(" [RTPServer] Loading..."); this.host = host; this.port = port; mySeqNum = 1; //mySourceId = 0x37b6c555; mySourceId = 0xd1586f52; timestamp = 0x11111111; //myRtspServer = new Media.Rtsp.RtspServer(1234); // Initialize the audio stream that will hold the data audioStream = new SpeechStreamer(AUDIO_BUFFER_SIZE, 5); // Initialize packet timer packetTimer = new Stopwatch(); //myRtspStream = new Media.Rtsp.Server.Streams.RtpSource("pistream", //myRtspServer.AddStream( Console.WriteLine(" Done"); }