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();
}
@@ -5,16 +5,14 @@
class RageSound_Null: public RageSound_Generic_Software
{
private:
int64_t last_cursor_pos;
protected:
public:
RageSound_Null();
int64_t GetPosition( const RageSoundBase *snd ) const;
float GetPlayLatency() const;
void Update( float fDeltaTime );
public:
RageSound_Null();
private:
int64_t m_iLastCursorPos;
};
#define USE_RAGE_SOUND_NULL