diff --git a/src/server.cpp b/src/server.cpp index 1634b33a..3060bad2 100755 --- a/src/server.cpp +++ b/src/server.cpp @@ -1046,6 +1046,7 @@ static CTimingMeas JitterMeas ( 1000, "test2.dat" ); JitterMeas.Measure(); // TE vecNumAudioChannels, vecvecsIntermediateProcBuf[i], vecvecbyCodedData[i], + vecChannels[iCurChanID], DoubleFrameSizeConvBufOut[iCurChanID], vecUseDoubleSysFraSizeConvBuf[i], vecNumFrameSizeConvBlocks[i], @@ -1095,6 +1096,7 @@ void CServer::MixEncodeTransmitData ( const CVector >& vecvecsD const CVector& vecNumAudioChannels, CVector& vecdIntermProcBuf, CVector& vecbyCodedData, + CChannel& Channel, CConvBuf& DoubleFrameSizeConvBufOut, const int iUseDoubleSysFraSizeConvBuf, const int iNumFrameSizeConvBlocks, @@ -1271,9 +1273,9 @@ opus_custom_encoder_ctl ( pCurOpusEncoder, } // send separate mix to current clients - vecChannels[iCurChanID].PrepAndSendPacket ( &Socket, - vecbyCodedData, - iCeltNumCodedBytes ); + Channel.PrepAndSendPacket ( &Socket, + vecbyCodedData, + iCeltNumCodedBytes ); } } diff --git a/src/server.h b/src/server.h index 010cd5e1..3655b9f0 100755 --- a/src/server.h +++ b/src/server.h @@ -307,6 +307,7 @@ protected: const CVector& vecNumAudioChannels, CVector& vecdIntermProcBuf, CVector& vecbyCodedData, + CChannel& Channel, CConvBuf& DoubleFrameSizeConvBufOut, const int iUseDoubleSysFraSizeConvBuf, const int iNumFrameSizeConvBlocks,