示例#1
0
 public unsafe void ReportFrame(DisplayPixel *pixel, int width, int height)
 {
     if (screenStreamer.HasClient)
     {
         BitConverter.GetBytes(width).CopyTo(buffer, HEADER_LENGTH + 0);
         BitConverter.GetBytes(height).CopyTo(buffer, HEADER_LENGTH + 4);
         SendCommand(OP_SCREENCAP_FRAME, 8, screenStreamer.Client);
         screenStreamer.ReportData(width * height, pixel);
     }
 }
示例#2
0
 public unsafe void ReportAudio(float *left, float *right, int count)
 {
     audioStreamer.ReportData(count, left, right);
 }