[hatari-devel] Higher precision when generating samples -> use nanosleep
Eero Tamminen
oak at helsinkinet.fi
Thu Jan 27 20:35:54 CET 2011
Hi,
On torstai 27 tammikuu 2011, David Savinkoff wrote:
> I've pondered the discussion and looked at the code and now
> I'm synchronized with what is going on.
>
> Here is a new patch that is intended to be incremental and
> supersede my previous patches.
>
> This patch addresses:
> - Required boundary checking in your vbl/sample-rate rounding.
> - Using the least common multiple (LCM) of 71 60 and 50 Hz.
>
> This patch does not address my continuous clock cycle
> correcting because I have yet put it into Main_WaitOnVbl().
>
> I've tested this patch and am confident that the LCM and
> VBL/sample-rate rounding is working well at 60Hz because
> the buffer drifts extremely slowly. About what you would
> expect with 2 crystals.
The US TOS sound delay doesn't happen with your patch applied
(at least I wasn't able to get it anymore).
- Eero
More information about the hatari-devel
mailing list