Change adaptive rate parameters slightly, so that is a less jumpy
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4038
This commit is contained in:
parent
616784c385
commit
33da572d9e
1 changed files with 1 additions and 1 deletions
|
@ -502,7 +502,7 @@ static void SDLCALL MIXER_CallBack(void * userdata, Uint8 *stream, int len) {
|
|||
if(diff > (mixer.min_needed<<1)) diff = mixer.min_needed<<1;
|
||||
if(diff > (mixer.min_needed>>1))
|
||||
mixer.tick_add = ((mixer.freq-(diff/5)) << TICK_SHIFT)/1000;
|
||||
else if (diff > (mixer.min_needed>>4))
|
||||
else if (diff > (mixer.min_needed>>2))
|
||||
mixer.tick_add = ((mixer.freq-(diff>>3)) << TICK_SHIFT)/1000;
|
||||
else
|
||||
mixer.tick_add = (mixer.freq<< TICK_SHIFT)/1000;
|
||||
|
|
Loading…
Add table
Reference in a new issue