From 93a31d7b2261c6e81173e68039448eeb1a64cff2 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 3 Apr 2004 01:26:39 +0000 Subject: [PATCH] StartDecodeThread() --- stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp | 2 +- stepmania/src/arch/Sound/RageSoundDriver_Null.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp index d3d845185d..6466a87a26 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp @@ -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; diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp b/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp index 1e4094d904..bcadc7d538 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp @@ -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