StartDecodeThread()

This commit is contained in:
Glenn Maynard
2004-04-03 01:26:39 +00:00
parent 213bc83ca4
commit 93a31d7b22
2 changed files with 3 additions and 1 deletions
@@ -34,7 +34,7 @@ int RageSound_Generic_Software::DecodeThread_start( void *p )
void RageSound_Generic_Software::Mix( int16_t *buf, int frames, int64_t frameno, int64_t current_frameno )
{
RAGE_ASSERT_M( m_DecodeThread.IsCreated(), "RageSound_Generic_Software::StartMixing was never called" );
RAGE_ASSERT_M( m_DecodeThread.IsCreated(), "RageSound_Generic_Software::StartDecodeThread() was never called" );
static SoundMixBuffer mix;
@@ -27,6 +27,8 @@ int64_t RageSound_Null::GetPosition( const RageSoundBase *snd ) const
RageSound_Null::RageSound_Null()
{
last_cursor_pos = GetPosition( NULL );
StartDecodeThread();
}
float RageSound_Null::GetPlayLatency() const