Integrate C++11 branch into 5_1-new
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
#include "RageUtil.h"
|
||||
#include "RageSoundMixBuffer.h"
|
||||
#include "RageSoundUtil.h"
|
||||
#include "Foreach.h"
|
||||
|
||||
#include <limits.h>
|
||||
#include <set>
|
||||
@@ -185,10 +184,10 @@ int RageSoundSplitterImpl::ReadBuffer()
|
||||
/* Discard any bytes that are no longer requested by any sound. */
|
||||
int iMinFrameRequested = INT_MAX;
|
||||
int iMaxFrameRequested = INT_MIN;
|
||||
FOREACHS( RageSoundReader_Split *, m_apSounds, snd )
|
||||
for (RageSoundReader_Split *snd : m_apSounds)
|
||||
{
|
||||
iMinFrameRequested = min( iMinFrameRequested, (*snd)->m_iPositionFrame );
|
||||
iMaxFrameRequested = max( iMaxFrameRequested, (*snd)->m_iPositionFrame + (*snd)->m_iRequestFrames );
|
||||
iMinFrameRequested = min( iMinFrameRequested, snd->m_iPositionFrame );
|
||||
iMaxFrameRequested = max( iMaxFrameRequested, snd->m_iPositionFrame + snd->m_iRequestFrames );
|
||||
}
|
||||
|
||||
if( iMinFrameRequested > m_iBufferPositionFrames )
|
||||
|
||||
Reference in New Issue
Block a user