cleanup
This commit is contained in:
@@ -9,11 +9,11 @@ const int samplerate = 44100;
|
|||||||
void RageSound_Null::Update( float fDeltaTime )
|
void RageSound_Null::Update( float fDeltaTime )
|
||||||
{
|
{
|
||||||
/* "Play" frames. */
|
/* "Play" frames. */
|
||||||
while( last_cursor_pos < GetPosition(NULL)+1024*4 )
|
while( m_iLastCursorPos < GetPosition(NULL)+1024*4 )
|
||||||
{
|
{
|
||||||
int16_t buf[256*channels];
|
int16_t buf[256*channels];
|
||||||
this->Mix( buf, 256, last_cursor_pos, GetPosition(NULL) );
|
this->Mix( buf, 256, m_iLastCursorPos, GetPosition(NULL) );
|
||||||
last_cursor_pos += 256;
|
m_iLastCursorPos += 256;
|
||||||
}
|
}
|
||||||
|
|
||||||
RageSound_Generic_Software::Update( fDeltaTime );
|
RageSound_Generic_Software::Update( fDeltaTime );
|
||||||
@@ -26,7 +26,7 @@ int64_t RageSound_Null::GetPosition( const RageSoundBase *snd ) const
|
|||||||
|
|
||||||
RageSound_Null::RageSound_Null()
|
RageSound_Null::RageSound_Null()
|
||||||
{
|
{
|
||||||
last_cursor_pos = GetPosition( NULL );
|
m_iLastCursorPos = GetPosition( NULL );
|
||||||
|
|
||||||
StartDecodeThread();
|
StartDecodeThread();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,16 +5,14 @@
|
|||||||
|
|
||||||
class RageSound_Null: public RageSound_Generic_Software
|
class RageSound_Null: public RageSound_Generic_Software
|
||||||
{
|
{
|
||||||
private:
|
public:
|
||||||
int64_t last_cursor_pos;
|
RageSound_Null();
|
||||||
|
|
||||||
protected:
|
|
||||||
int64_t GetPosition( const RageSoundBase *snd ) const;
|
int64_t GetPosition( const RageSoundBase *snd ) const;
|
||||||
float GetPlayLatency() const;
|
float GetPlayLatency() const;
|
||||||
void Update( float fDeltaTime );
|
void Update( float fDeltaTime );
|
||||||
|
|
||||||
public:
|
private:
|
||||||
RageSound_Null();
|
int64_t m_iLastCursorPos;
|
||||||
};
|
};
|
||||||
#define USE_RAGE_SOUND_NULL
|
#define USE_RAGE_SOUND_NULL
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user