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); } }
public unsafe void ReportAudio(float *left, float *right, int count) { audioStreamer.ReportData(count, left, right); }