@@ -182,13 +182,12 @@ void CHighPrecisionTimer::run()
182182 {
183183 // call processing routine by fireing signal
184184
185- // clang-format off
186- // TODO by emit a signal we leave the high priority thread -> maybe use some
187- // other connection type to have something like a true callback, e.g.
188- // "Qt::DirectConnection" -> Can this work?
189- // clang-format on
190-
185+ // ### TODO: BEGIN ###//
186+ // by emit a signal we leave the high priority thread -> maybe use some
187+ // other connection type to have something like a true callback, e.g.
188+ // "Qt::DirectConnection" -> Can this work?
191189 emit timeout ();
190+ // ### TODO: END ###//
192191
193192 // now wait until the next buffer shall be processed (we
194193 // use the "increment method" to make sure we do not introduce
@@ -756,11 +755,11 @@ void CServer::Stop()
756755
757756void CServer::OnTimer ()
758757{
759- // clang-format off
760- /*
761- static CTimingMeas JitterMeas ( 1000, "test2.dat" ); JitterMeas.Measure(); // TEST do a timer jitter measurement
762- * /
763- // clang-format on
758+ // ### TEST: BEGIN ###//
759+ // uncomment next line to do a timer Jitter measurement
760+ // static CTimingMeas JitterMeas ( 1000, "test2.dat" ); JitterMeas.Measure();
761+ // ### TEST: END ###/ /
762+
764763 // Get data from all connected clients -------------------------------------
765764 // some inits
766765 int iNumClients = 0 ; // init connected client counter
@@ -1344,11 +1343,12 @@ void CServer::MixEncodeTransmitData ( const int iChanCnt, const int iNumClients
13441343 // OPUS encoding
13451344 if ( pCurOpusEncoder != nullptr )
13461345 {
1347- // clang-format off
1348- // TODO find a better place than this: the setting does not change all the time so for speed
1349- // optimization it would be better to set it only if the network frame size is changed
1350- opus_custom_encoder_ctl ( pCurOpusEncoder, OPUS_SET_BITRATE ( CalcBitRateBitsPerSecFromCodedBytes ( iCeltNumCodedBytes, iClientFrameSizeSamples ) ) );
1351- // clang-format on
1346+ // ### TODO: BEGIN ###//
1347+ // find a better place than this: the setting does not change all the time so for speed
1348+ // optimization it would be better to set it only if the network frame size is changed
1349+ opus_custom_encoder_ctl ( pCurOpusEncoder,
1350+ OPUS_SET_BITRATE ( CalcBitRateBitsPerSecFromCodedBytes ( iCeltNumCodedBytes, iClientFrameSizeSamples ) ) );
1351+ // ### TODO: END ###//
13521352
13531353 for ( int iB = 0 ; iB < vecNumFrameSizeConvBlocks[iChanCnt]; iB++ )
13541354 {
0 commit comments