This commit is contained in:
Glenn Maynard
2005-10-23 21:53:32 +00:00
parent a048cc52bb
commit 49e8dd1327
2 changed files with 8 additions and 10 deletions
@@ -9,11 +9,11 @@ const int samplerate = 44100;
void RageSound_Null::Update( float fDeltaTime )
{
/* "Play" frames. */
while( last_cursor_pos < GetPosition(NULL)+1024*4 )
while( m_iLastCursorPos < GetPosition(NULL)+1024*4 )
{
int16_t buf[256*channels];
this->Mix( buf, 256, last_cursor_pos, GetPosition(NULL) );
last_cursor_pos += 256;
this->Mix( buf, 256, m_iLastCursorPos, GetPosition(NULL) );
m_iLastCursorPos += 256;
}
RageSound_Generic_Software::Update( fDeltaTime );
@@ -26,7 +26,7 @@ int64_t RageSound_Null::GetPosition( const RageSoundBase *snd ) const
RageSound_Null::RageSound_Null()
{
last_cursor_pos = GetPosition( NULL );
m_iLastCursorPos = GetPosition( NULL );
StartDecodeThread();
}