[hatari-devel] Higher precision when generating samples -> use nanosleep

David Savinkoff dsavnkff at telus.net
Thu Jan 27 09:16:48 CET 2011


Hi Nicolas,

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.

David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sound-sync-tip1.diff
Type: application/octet-stream
Size: 4565 bytes
Desc: not available
URL: <https://lists.berlios.de/pipermail/hatari-devel/attachments/20110127/36a7cd09/attachment.obj>


More information about the hatari-devel mailing list