예제 #1
0
            public void ReadFrame(DataPointer Buffer)
            {
                int startFrame = readCursor;

                Buffer.CopyFrom(buffer, readCursor, frameSize);

                readCursor += frameSize;

                if (readCursor >= bufferSize)
                {
                    readCursor = 0;
                    if (writeWrap)
                    {
                        writeWrap = false;
                    }
                    else
                    {
                        Reset();
                    }
                }
                CheckOverread();
            }
예제 #2
0
 public void ReadSilentFrame(DataPointer Buffer)
 {
     Buffer.CopyFrom(silentFrame, 0, frameSize);
 }