[RageSoundReader_Preload] change default maximum number of samples to 1048576 samples.

This uses a lot more memory, but should make it smoother when playing heavily keysounded files. Many simulators do actually load all keysounds into memory before the game starts.
This commit is contained in:
Thai Pangsakulyanont
2012-04-26 13:32:15 +07:00
parent 4be6179607
commit 23f9bad9e0
+1 -1
View File
@@ -13,7 +13,7 @@
Preference<bool> g_bSoundPreload16bit( "SoundPreload16bit", true );
/* If a sound is smaller than this, we'll load it entirely into memory. */
Preference<int> g_iSoundPreloadMaxSamples( "SoundPreloadMaxSamples", 128*1024 );
Preference<int> g_iSoundPreloadMaxSamples( "SoundPreloadMaxSamples", 1024*1024 );
#define samplesize (m_bBufferIs16Bit? sizeof(int16_t):sizeof(float))
#define framesize (samplesize * m_iChannels)