[hatari-devel] [Crossbar emulation] : new infos, + some help needed
Thomas Huth
huth at users.berlios.de
Mon Sep 28 22:07:14 CEST 2009
Hi Laurent,
sorry for the late reply, I'm quite busy with real life work atm...
(and as it currently looks like, this won't change in the upcoming
weeks...)
On Wed, 23 Sep 2009 16:23:32 +0200
Laurent Sallafranque <laurent.sallafranque at free.fr> wrote:
> Yes, it seems that there are 2 sets of DMA devices in the Falcon (one
> for sound and one into the crossbar).
You mean one for playing (memory to crossbar) and one for recording
(crossbar to memory), don't you?
> My first problem was to understand which parameters are for each DMA,
> as in the compendium, they're both names "DMA".
> (In page B-28 of the compendium, you can read : (DMA OUT) is linked
> to (DMA IN) for example).
Well, I guess DMA OUT = DMA playing and DMA IN = DMA recording ?
> For the DAC part :
>
> I've taken the DAC code from DmaSound.c
> I've seen that DAC merges it's datas in a buffer coming from the PSG.
>
> I think that my frequency problem comes from this function, but I'm
> not sure.
> Thomas, Would you please have a look at Crossbar_GenerateSamples() ?
> Can I use it the same as you did in DmaSound.c ?
> (You were reading the whole buffer at one time, I'm sending datas in
> interrupted mode (at a certain frequency).
Sorry, I lost a little bit track about all your other mails... Do your
problem still persist here, or is this fixed already?
I saw that you're using a DACBUFFER_SIZE of MIXBUFFER_SIZE*2*64*2 Bytes
there, ... but that's a buffer of 4 Megabytes! Isn't that a little bit
too much for a sound buffer? It doesn't sound right to me to use such
big buffers for sound...
Thomas
More information about the hatari-devel
mailing list