[hatari-devel] Little question about SteDMA sound

Laurent Sallafranque laurent.sallafranque at free.fr
Sat Sep 19 18:39:11 CEST 2009


Shouldn't we use the same value as Nicolas used in int.c instead ?
As least, it would be the same value everywhere.

I agree that the 8447 is not changing many things in the result, it's 
just to use the same value everywhere.

Could this value be written as a define in configuration.h (at least, if 
we want to change it, it would be changed in Dmasnd.c too) ?

regards

Laurent


npomarede at corp.free.fr a écrit :
> 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
>
> _______________________________________________
> hatari-devel mailing list
> hatari-devel at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/hatari-devel
>
>
>   




More information about the hatari-devel mailing list