[hatari-devel] [Fwd: Re: Crossbar.c Dac buffer size define? (found, YESSS)]

Laurent Sallafranque laurent.sallafranque at free.fr
Sat Sep 26 09:54:30 CEST 2009


YESSSS,

I've solved the DSP sound problem.

The DAC output buffer was too small.

The problem is that the circular buffer was sometimes written before the 
datas in generate_sample were read from this same buffer :

The DSP output writes into the buffer data by data at a certain frequency.
The read is 1000 octets at once (1000 is for the example).

So, if the buffer is too small, the writting erase datas that tha 
reader  hasn't yet read.


I'll try to see if this works OK too with *128, *64, *32 to reduce the 
buffer size.

I'll return on DMA sound tomorrow :)

Then, I'll attack the DSP receive.

Regards,

Laurent

-------------- next part --------------
An embedded message was scrubbed...
From: Laurent Sallafranque <laurent.sallafranque at free.fr>
Subject: Re: Crossbar.c Dac buffer size define?  (found, YESSS)
Date: Fri, 25 Sep 2009 21:45:29 +0200
Size: 1546
URL: <https://lists.berlios.de/pipermail/hatari-devel/attachments/20090926/1fb5c791/attachment.eml>


More information about the hatari-devel mailing list