some small re-ordering of code in the server
This commit is contained in:
parent
73ad939352
commit
ac0eb73bc6
1 changed files with 19 additions and 19 deletions
|
@ -1003,16 +1003,6 @@ static CTimingMeas JitterMeas ( 1000, "test2.dat" ); JitterMeas.Measure(); // TE
|
|||
// get number of audio channels of current channel
|
||||
const int iCurNumAudChan = vecNumAudioChannels[i];
|
||||
|
||||
// export the audio data for recording purpose
|
||||
if ( JamController.GetRecordingEnabled() )
|
||||
{
|
||||
emit AudioFrame ( iCurChanID,
|
||||
vecChannels[iCurChanID].GetName(),
|
||||
vecChannels[iCurChanID].GetAddress(),
|
||||
iCurNumAudChan,
|
||||
vecvecsData[i] );
|
||||
}
|
||||
|
||||
// generate a separate mix for each channel
|
||||
// actual processing of audio data -> mix
|
||||
ProcessData ( vecvecsData,
|
||||
|
@ -1096,6 +1086,7 @@ opus_custom_encoder_ctl ( CurOpusEncoder,
|
|||
vecvecbyCodedData[i],
|
||||
iCeltNumCodedBytes );
|
||||
}
|
||||
}
|
||||
|
||||
// update socket buffer size
|
||||
vecChannels[iCurChanID].UpdateSocketBufferSize();
|
||||
|
@ -1107,6 +1098,15 @@ opus_custom_encoder_ctl ( CurOpusEncoder,
|
|||
vecChannelLevels,
|
||||
iNumClients );
|
||||
}
|
||||
|
||||
// export the audio data for recording purpose
|
||||
if ( JamController.GetRecordingEnabled() )
|
||||
{
|
||||
emit AudioFrame ( iCurChanID,
|
||||
vecChannels[iCurChanID].GetName(),
|
||||
vecChannels[iCurChanID].GetAddress(),
|
||||
iCurNumAudChan,
|
||||
vecvecsData[i] );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue