fixup (still unused) code
This commit is contained in:
@@ -274,11 +274,17 @@ bool RageSoundReader_Chain::SetProperty( const RString &sProperty, float fValue
|
|||||||
int RageSoundReader_Chain::GetNextSourceFrame() const
|
int RageSoundReader_Chain::GetNextSourceFrame() const
|
||||||
{
|
{
|
||||||
return m_iCurrentFrame;
|
return m_iCurrentFrame;
|
||||||
// XXX: GetPosition is expected to differ by iOffsetMS
|
/* if( m_apActiveSounds.empty() )
|
||||||
/* int iPosition = m_apActiveSounds[0].pSound->GetPosition();
|
return m_iCurrentFrame;
|
||||||
for( unsigned i = 1; i < m_apActiveSounds.size(); )
|
|
||||||
|
int iPosition = m_apActiveSounds[0]->pSound->GetNextSourceFrame();
|
||||||
|
iPosition += m_apActiveSounds[0]->GetOffsetFrame( GetSampleRate() );
|
||||||
|
|
||||||
|
for( unsigned i = 1; i < m_apActiveSounds.size(); ++i )
|
||||||
{
|
{
|
||||||
if( m_apActiveSounds[i].pSound->GetPosition() != iPosition )
|
int iThisPosition = m_apActiveSounds[i]->pSound->GetNextSourceFrame();
|
||||||
|
iThisPosition += m_apActiveSounds[i]->GetOffsetFrame( GetSampleRate() );
|
||||||
|
if( iThisPosition != iPosition )
|
||||||
LOG->Warn( "RageSoundReader_Chain: sound positions moving at different rates" );
|
LOG->Warn( "RageSoundReader_Chain: sound positions moving at different rates" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user