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
@@ -15,6 +15,9 @@
* samplerate to use instead. */
unsigned Alsa9Buf::FindSampleRate( unsigned rate )
{
if( rate == 0 )
rate = 44100;
snd_pcm_hw_params_t *testhw;
dsnd_pcm_hw_params_alloca( &testhw );
dsnd_pcm_hw_params_any( pcm, testhw );