[hatari-devel] Higher precision when generating samples -> use nanosleep
David Savinkoff
dsavnkff at telus.net
Fri Jan 28 19:29:44 CET 2011
Hi,
> On Jan 28, 2011, Eero Tamminen <oak at helsinkinet.fi> wrote:
>
> With this patch you don't need the Skew variable at all, just do:
> nDestFrameTicks += 20;
Thanks, here is a new patch.
> (I'm not sure I like sound stuff being spread to main.c though,
> isolating sound related calculation to sound related files seemed
> cleaner.)
I guess it is about pros and cons. On the pro side; this patch doesn't
touch any files outside of main.c. The con side is not too ugly.
The sound calculations are contained in Main_WaitOnVbl() and
use existing external variables (nSamplesPerFrame nAudioFrequency
nScreenRefreshRate nGeneratedSamples SoundBufferSize).
The sound calculations are minimal, and have more to do with
synchronization than sound.
David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sound-sync-tip3.diff
Type: application/octet-stream
Size: 5112 bytes
Desc: not available
URL: <https://lists.berlios.de/pipermail/hatari-devel/attachments/20110128/4e24b8b5/attachment.obj>
More information about the hatari-devel
mailing list