Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements

Fix whitespace changes
This commit is contained in:
Michael Sundqvist
2022-07-10 18:28:56 +03:00
committed by Martin Natano
parent f0680a29fc
commit 0cba3579de
534 changed files with 3456 additions and 3488 deletions
+7 -7
View File
@@ -74,11 +74,11 @@ public:
RageSoundReader *m_pSource;
set<RageSoundReader_Split *> m_apSounds;
std::set<RageSoundReader_Split *> m_apSounds;
/* m_sBuffer[0] corresponds to frame number m_iBufferPositionFrames. */
int m_iBufferPositionFrames;
vector<float> m_sBuffer;
std::vector<float> m_sBuffer;
};
int RageSoundReader_Split::GetLength() const { return m_pImpl->m_pSource->GetLength(); }
@@ -156,7 +156,7 @@ int RageSoundReader_Split::Read( float *pBuf, int iFrames )
if( iFramesAvailable == 0 && iRet < 0 )
return iRet;
iFramesAvailable = min( iFramesAvailable, iFramesWanted );
iFramesAvailable = std::min( iFramesAvailable, iFramesWanted );
{
RageSoundMixBuffer mix;
@@ -186,14 +186,14 @@ int RageSoundSplitterImpl::ReadBuffer()
int iMaxFrameRequested = INT_MIN;
for (RageSoundReader_Split *snd : m_apSounds)
{
iMinFrameRequested = min( iMinFrameRequested, snd->m_iPositionFrame );
iMaxFrameRequested = max( iMaxFrameRequested, snd->m_iPositionFrame + snd->m_iRequestFrames );
iMinFrameRequested = std::min( iMinFrameRequested, snd->m_iPositionFrame );
iMaxFrameRequested = std::max( iMaxFrameRequested, snd->m_iPositionFrame + snd->m_iRequestFrames );
}
if( iMinFrameRequested > m_iBufferPositionFrames )
{
int iEraseFrames = iMinFrameRequested - m_iBufferPositionFrames;
iEraseFrames = min( iEraseFrames, (int) m_sBuffer.size() );
iEraseFrames = std::min( iEraseFrames, (int) m_sBuffer.size() );
m_sBuffer.erase( m_sBuffer.begin(), m_sBuffer.begin() + iEraseFrames * m_pSource->GetNumChannels() );
m_iBufferPositionFrames += iEraseFrames;
}
@@ -229,7 +229,7 @@ int RageSoundSplitterImpl::ReadBuffer()
void RageSoundReader_Split::AddSourceChannelToSound( int iFromChannel, int iToChannel )
{
m_aChannels.push_back( ChannelMap(iFromChannel, iToChannel) );
m_iNumOutputChannels = max( m_iNumOutputChannels, iToChannel + 1 );
m_iNumOutputChannels = std::max( m_iNumOutputChannels, iToChannel + 1 );
}
RageSoundSplitter::RageSoundSplitter( RageSoundReader *pSource )