[hatari-devel] New STE DMA audio emulation
Nicolas Pomarède
npomarede at corp.free.fr
Sat Jul 2 12:46:13 CEST 2011
Le 02/07/2011 12:38, Laurent Sallafranque a écrit :
> There are 2 fifos in the Falcon DMA
>
> 1 32 bytes for DMA play
> 1 32 bytes for DMA record.
>
> That point is a certitude (I've seen it in the compendium, STMagazine, ...)
>
> The way these 2 buffers are filled is described nowhere. I guess it
> works in the HBL like the STe.
Yes, in that case, that's possible.
>
> Until now, I thought I could bypass the 2 falcon DMA buffers (as we did
> for the STe).
> But as your adding of the STE buffer improves sound quality, I think I
> should add the 2 buffers to the falcon too.
When I improved STE sound, adding the 8 byte fifo was really the last
step, and although it improved quality, it was not the main part
responsible for a better quality.
The main part was due to precisely counting every byte played on every
frame, to check that it was consistent with the replay freq. That's why
I think it would be an error to implement FIFO when sound is not already
good in double buffer replay, it wouldn't improve this situation and it
could add some complexity that will make it harder to get good sound.
First step (and the most tedious one) is really to "print" all output
samples and compare this with the theorical output rate.
Nicolas
More information about the hatari-devel
mailing list