From 23f9bad9e0cf99f4b5b340f368f7973a66fdc162 Mon Sep 17 00:00:00 2001 From: Thai Pangsakulyanont Date: Thu, 26 Apr 2012 13:32:15 +0700 Subject: [PATCH] [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. --- src/RageSoundReader_Preload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RageSoundReader_Preload.cpp b/src/RageSoundReader_Preload.cpp index c6a313835c..c0a2253dd1 100644 --- a/src/RageSoundReader_Preload.cpp +++ b/src/RageSoundReader_Preload.cpp @@ -13,7 +13,7 @@ Preference g_bSoundPreload16bit( "SoundPreload16bit", true ); /* If a sound is smaller than this, we'll load it entirely into memory. */ -Preference g_iSoundPreloadMaxSamples( "SoundPreloadMaxSamples", 128*1024 ); +Preference g_iSoundPreloadMaxSamples( "SoundPreloadMaxSamples", 1024*1024 ); #define samplesize (m_bBufferIs16Bit? sizeof(int16_t):sizeof(float)) #define framesize (samplesize * m_iChannels)