fixed Mac compilation error

This commit is contained in:
Volker Fischer 2020-04-07 19:45:28 +02:00
parent ac21104cd0
commit 0eedcd8061

View file

@ -1628,7 +1628,7 @@ void CServer::CreateLevelsForAllConChannels ( const int i
// mono // mono
for ( i = 0; i < SYSTEM_FRAME_SIZE_SAMPLES; i += 3 ) for ( i = 0; i < SYSTEM_FRAME_SIZE_SAMPLES; i += 3 )
{ {
dCurLevel = std::max ( dCurLevel, std::abs ( static_cast<double> ( vecsData[i] ) ) ); dCurLevel = std::max ( dCurLevel, fabs ( static_cast<double> ( vecsData[i] ) ) );
} }
} }
else else
@ -1637,7 +1637,7 @@ void CServer::CreateLevelsForAllConChannels ( const int i
for ( i = 0, k = 0; i < SYSTEM_FRAME_SIZE_SAMPLES; i += 3, k += 6 ) for ( i = 0, k = 0; i < SYSTEM_FRAME_SIZE_SAMPLES; i += 3, k += 6 )
{ {
double sMix = ( static_cast<double> ( vecsData[k] ) + vecsData[k + 1] ) / 2; double sMix = ( static_cast<double> ( vecsData[k] ) + vecsData[k + 1] ) / 2;
dCurLevel = std::max ( dCurLevel, std::abs ( sMix ) ); dCurLevel = std::max ( dCurLevel, fabs ( sMix ) );
} }
} }