From bc9d6fb205f1ecfc67cad2d3633057232f278598 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 2 Dec 2003 20:56:04 +0000 Subject: [PATCH] m_iSoundWriteAhead for ALSA9-sw --- stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp index 548a9f9fb3..e4883115b5 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp @@ -7,6 +7,7 @@ #include "RageUtil.h" #include "RageTimer.h" #include "ALSA9Dynamic.h" +#include "PrefsManager.h" #include "archutils/Unix/GetSysInfo.h" @@ -172,6 +173,9 @@ try { if( sys == "Linux" && vers >= 0x020600 ) max_writeahead = max_writeahead_linux_26; + if( PREFSMAN->m_iSoundWriteAhead ) + max_writeahead = PREFSMAN->m_iSoundWriteAhead; + pcm = new Alsa9Buf( Alsa9Buf::HW_DONT_CARE, channels, samplerate ); MixingThread.SetName( "RageSound_ALSA9_Software" );