public TmKeyRec(int _buffSize, BUFF_TYPE _buffType) { mBuffSize = _buffSize; mInfo = new KeyInfo(); mRecInfo = new KeyInfo[mBuffSize]; mBuffPtr = -1; mRecSize = mRecCtr = mPlayCtr = 0; mState = STATE.STOP; mBuffType = _buffType; mPad = new PAD(); mDebug = new KeyInfoDebug(); }
public TmKeyRec(TmKeyRec _origin) { mBuffSize = _origin.mBuffSize; mInfo = new KeyInfo(_origin.keyInfo); // mRecInfo = (KeyInfo[])_origin.mRecInfo.Clone(); mRecInfo = new KeyInfo[_origin.mBuffSize]; Array.Copy(_origin.mRecInfo, 0, mRecInfo, 0, _origin.mRecSize); mBuffPtr = _origin.mBuffPtr; mRecSize = _origin.mRecSize; mRecCtr = _origin.mRecCtr; mPlayCtr = _origin.mPlayCtr; mState = _origin.mState; mBuffType = _origin.mBuffType; mPad = new PAD(_origin.mPad); mDebug = new KeyInfoDebug(); }
public TmKeyRec(TmKeyRec _origin) { mBuffSize = _origin.mBuffSize; mInfo = new KeyInfo(_origin.keyInfo); // mRecInfo = (KeyInfo[])_origin.mRecInfo.Clone(); mRecInfo = new KeyInfo[_origin.mBuffSize]; Array.Copy(_origin.mRecInfo,0,mRecInfo,0,_origin.mRecSize); mBuffPtr = _origin.mBuffPtr; mRecSize = _origin.mRecSize; mRecCtr = _origin.mRecCtr; mPlayCtr = _origin.mPlayCtr; mState = _origin.mState; mBuffType = _origin.mBuffType; mPad = new PAD(_origin.mPad); mDebug = new KeyInfoDebug(); }