Beispiel #1
0
        public virtual void SubmitRecordedFrame(AudioContext ctx, byte[] frame)
        {
            var recordedFrame = new byte[frame.Length];

            Buffer.BlockCopy(frame, 0, recordedFrame, 0, frame.Length);
            RecordedFrames.Add(recordedFrame);
            if (mRecordedFrameCount++ % VisualizationRate == 0)
            {
                mAudioVisualizer.RenderVisualization(recordedFrame);
            }
        }
Beispiel #2
0
 public void SetVideoFrame(byte[] frame, int stride)
 {
     if (isRecording)
     {
         if (stride <= 0)
         {
             VideoHelper.FlipAndReverse(frame, frame);
         }
         RecordedFrames.Add(frame);
         FramesRecorded++;
     }
 }