PREFSMAN->m_iSoundPreferredSampleRate == 0 means "do what's right for the hardware". We want a 44.1khz default for most systems, but KS should default to 48khz.

This commit is contained in:
Glenn Maynard
2006-12-06 06:26:24 +00:00
parent 650ece9cec
commit 10fa6ceb2e
7 changed files with 19 additions and 3 deletions
@@ -29,6 +29,8 @@ int64_t RageSound_Null::GetPosition( const RageSoundBase *snd ) const
RageSound_Null::RageSound_Null()
{
m_iSampleRate = PREFSMAN->m_iSoundPreferredSampleRate;
if( m_iSampleRate == 0 )
m_iSampleRate = 44100;
m_iLastCursorPos = GetPosition( NULL );
StartDecodeThread();
}