[hatari-devel] Slow sound buffer
Nicolas Pomarède
npomarede at corp.free.fr
Fri Jan 21 20:07:20 CET 2011
Le 21/01/2011 20:04, Eero Tamminen a écrit :
> Hi,
>
> On perjantai 21 tammikuu 2011, David Savinkoff wrote:
>> Here is the latest patch. I merged what I was doing into your patch.
>> SDL_GetTicks() and other variables do not have overflow concerns
>> as they are designed to overflow every 16.384 seconds. Hatari will
>> now smoothly run synchronized indefinitely.
>>
>> I had one glitch that required me to change the code below because hatari
>> would sometimes delay up to 16.384 seconds after leaving the SDL menu.
>>
>> /* Do not wait if we are in fast forward mode or if we are totally out of
>> sync */ if (ConfigureParams.System.bFastForward == true
>> - || nDelay< -4*nFrameDuration)
>> + || abs(nFrameDelay)> 4*nFrameDuration)
>
> Patch looks OK to me, but as Nicolas has written the sound code,
> it's better if he checks& integrates it.
>
> (I'll look into Crossbar memory snapshot stuff during the weekend.)
>
Yes, I will give it a look this week end, I also have some changes at
this level and I'd like to see if I can merge both approaches.
Nicolas
More information about the hatari-devel
mailing list