[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user