Beispiel #1
0
 private void OnMessageReceived(object obj, ZeroMQEventArgs zArgs)
 {
     //SendAudio(zArgs.ReceivedZMessage);
     try
     {
         var data = zArgs.ReceivedZMessage[1].Read();
         SendAudio(data);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Beispiel #2
0
        private void OnMessageReceived(object obj, ZeroMQEventArgs zArgs)
        {
            var message = zArgs.ReceivedZMessage;

            Console.WriteLine(message[message.Count - 1]);
        }
Beispiel #3
0
        private void OnDataReceived(object sender, ZeroMQEventArgs e)
        {
            var received = e.ReceivedZMessage[1].Read();

            waveProvider.AddSamples(received, 0, received.Length);
        }