[hatari-devel] Little question about SteDMA sound
npomarede at corp.free.fr
npomarede at corp.free.fr
Sat Sep 19 09:51:36 CEST 2009
On Sat, 19 Sep 2009, Thomas Huth wrote:
>> I thought it could be the processor frequency, but it is 8021247 hz.
>
> It's meant to be the processor frequency. I think the real 68000
> frequency is:
>
> (number of cycles per VBL) * (VBLs per sec) = 160250 * 50 = 8012500
>
> Maybe I read the rounded value 8.013 MHz somewhere and used 8013000 Hz
> because of this. You should replace it by 8012500 Hz instead.
Note that to be really precise, we have 160256 cycles per VBL, so the
final number is 8012800 (verified on a real ST)
But in int.c I used 8021247 as this value was given to me by Leonard/Oxg
and seems to be PAL value. So, I don't know where the 8447 difference
comes from (but it shouldn't matter regarding final result wrt sound)
Nicolas
More information about the hatari-devel
mailing list