1
0
Fork 0

Why didn't we have this earlier..

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3556
This commit is contained in:
Peter Veenstra 2010-03-06 10:35:49 +00:00
parent 58431593bb
commit 6864fa295f

View file

@ -652,6 +652,8 @@ void MIXER_Init(Section* sec) {
mixer.tick_add=((mixer.freq) << MIXER_SHIFT)/1000;
TIMER_AddTickHandler(MIXER_Mix_NoSound);
} else {
if((mixer.freq != obtained.freq) || (mixer.blocksize != obtained.samples))
LOG_MSG("MIXER:Got different values from SDL: freq %d, blocksize %d",obtained.freq,obtained.samples);
mixer.freq=obtained.freq;
mixer.blocksize=obtained.samples;
mixer.tick_add=(mixer.freq << MIXER_SHIFT)/1000;