small fix
This commit is contained in:
parent
3e21776fa5
commit
2888af4974
1 changed files with 3 additions and 7 deletions
|
@ -995,7 +995,7 @@ static CTimingMeas JitterMeas ( 1000, "test2.dat" ); JitterMeas.Measure(); // TE
|
||||||
for ( int i = 0; i < iNumClients; i++ )
|
for ( int i = 0; i < iNumClients; i++ )
|
||||||
{
|
{
|
||||||
int iClientFrameSizeSamples = 0; // initialize to avoid a compiler warning
|
int iClientFrameSizeSamples = 0; // initialize to avoid a compiler warning
|
||||||
OpusCustomEncoder* pCurOpusEncoder;
|
OpusCustomEncoder* pCurOpusEncoder = nullptr;
|
||||||
|
|
||||||
// get actual ID of current channel
|
// get actual ID of current channel
|
||||||
const int iCurChanID = vecChanIDsCurConChan[i];
|
const int iCurChanID = vecChanIDsCurConChan[i];
|
||||||
|
@ -1033,13 +1033,9 @@ static CTimingMeas JitterMeas ( 1000, "test2.dat" ); JitterMeas.Measure(); // TE
|
||||||
pCurOpusEncoder = Opus64EncoderStereo[iCurChanID];
|
pCurOpusEncoder = Opus64EncoderStereo[iCurChanID];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
pCurOpusEncoder = nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
// generate a separate mix for each channel
|
// generate a separate mix for each channel, OPUS encode the
|
||||||
// actual processing of audio data -> mix
|
// audio data and transmit the network packet
|
||||||
MixEncodeTransmitData ( vecvecsData,
|
MixEncodeTransmitData ( vecvecsData,
|
||||||
vecvecdGains[i],
|
vecvecdGains[i],
|
||||||
vecvecdPannings[i],
|
vecvecdPannings[i],
|
||||||
|
|
Loading…
Reference in a new issue