Browse code

Merge pull request #2 from zeromus/patch-1

Update XSFPlayer_2SF.cpp

Naram Qashat authored on 2017/11/10 12:04:31 • GitHub committed on 2017/11/10 12:04:31
Showing 1 changed files
... ...
@@ -211,7 +211,8 @@ bool XSFPlayer_2SF::Load()
211 211
 	if (NDS_Init())
212 212
 		return false;
213 213
 
214
-	SPU_ChangeSoundCore(SNDIFID_2SF, 737);
214
+	static const int BUFFERSIZE = DESMUME_SAMPLE_RATE / 59.837; //truncates to 737, the traditional value, for 44100
215
+	SPU_ChangeSoundCore(SNDIFID_2SF, BUFFERSIZE);
215 216
 
216 217
 	execute = false;
217 218