mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
again boring misalignment fixes
This commit is contained in:
@@ -123,15 +123,13 @@ void CAudioMixerWaveADPCM::DecompressBlockMono( short *pOut, const char *pIn, in
|
||||
int co2 = m_pCoefficients[pred].iCoef2;
|
||||
|
||||
// read initial delta
|
||||
int delta = *((short *)pIn);
|
||||
pIn += 2;
|
||||
short data[3];
|
||||
memcpy( data, pIn, sizeof(data) );
|
||||
pIn += sizeof(data);
|
||||
|
||||
// read initial samples for prediction
|
||||
int samp1 = *((short *)pIn);
|
||||
pIn += 2;
|
||||
|
||||
int samp2 = *((short *)pIn);
|
||||
pIn += 2;
|
||||
int delta = data[0];
|
||||
int samp1 = data[1];
|
||||
int samp2 = data[2];
|
||||
|
||||
// write out the initial samples (stored in reverse order)
|
||||
*pOut++ = (short)samp2;
|
||||
|
||||
@@ -63,7 +63,7 @@ inline void LocalTransfer_FastType(
|
||||
|
||||
const T *pSource = (const T*)( pServerBase + pCur->m_iSendOffset );
|
||||
T *pDest = (T*)( pClientBase + pCur->m_iRecvOffset );
|
||||
*pDest = *pSource;
|
||||
memcpy( pDest, pSource, sizeof(T) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user