Enable more compiler warnings and treat them as errors.

This commit is contained in:
Brian Phlipot
2023-02-02 11:54:17 -08:00
committed by teejusb
parent f8f6f12999
commit 4a6b1a743c
141 changed files with 625 additions and 757 deletions
-7
View File
@@ -253,13 +253,6 @@ int RageSoundReader_Merge::Read( float *pBuffer, int iFrames )
}
int iGotFrames = pSound->Read( Buffer, iFrames - iFramesRead );
if( 0 && /*i == 1 && */iGotFrames > 0 )
{
int iAt = aNextSourceFrames[i] + lrintf(iGotFrames * aRatios[i]);
if( iAt != m_aSounds[i]->GetNextSourceFrame() )
LOG->Trace( "%i: at %i, expected %i",
i, iAt, m_aSounds[i]->GetNextSourceFrame() );
}
aNextSourceFrames[i] = m_aSounds[i]->GetNextSourceFrame();
aRatios[i] = m_aSounds[i]->GetStreamToSourceRatio();
// LOG->Trace( "read %i from %i; %i -> %i", iGotFrames, i, oldf, aNextSourceFrames[i] );