Fix audio drivers with a low sample count maximum value (#1697)

This commit is contained in:
Chris Pable
2018-08-02 10:28:24 -05:00
committed by Colby Klein
parent b0ef8d9f00
commit c200600c65
8 changed files with 123 additions and 43 deletions
+1
View File
@@ -274,6 +274,7 @@ PrefsManager::PrefsManager() :
m_bSmoothLines ( "SmoothLines", false ),
m_iSoundWriteAhead ( "SoundWriteAhead", 0 ),
m_iSoundDevice ( "SoundDevice", "" ),
m_iRageSoundSampleCountClamp ("RageSoundSampleCountClamp", 0), //some sound drivers mask the sample location number, the most popular number for this is 2^27, this causes lockup after ~50 minutes at 44.1khz sample rate
m_iSoundPreferredSampleRate ( "SoundPreferredSampleRate", 0 ),
m_sLightsStepsDifficulty ( "LightsStepsDifficulty", "medium" ),
m_bAllowUnacceleratedRenderer ( "AllowUnacceleratedRenderer", false ),