[hatari-devel] Issues after restoring a memory snapshot

LAURENT SALLAFRANQUE laurent.sallafranque at arkea.com
Fri Jan 28 17:06:38 CET 2011


Hi,

> Btw. why DMA sound isn't reseted for Falcon emulation, only Crossbar?
> Does Crossbar replace DmaSnd.c stuff completely?

Yes, absolutely.
Have a look at sound.c in Sound_GenerateSamples() function.

I've included a fork here :
	if (ConfigureParams.System.nMachineType == MACHINE_FALCON)

Where I call the crossbar (which takes everything into account, also DMA sound).

Dmasound.c is STE/TT specific

Except if I've forgotten something, crossbar functions are also called after a reset and everytime it's needed for falcon emulation.
I've completely forked the sound for the Falcon needs.
(That's what I'd like to do now for the video).

I've just saved crossbar AND dmasound in the snapshot, also in falcon mode (as dma_sound parameters are not used).
This avoid adding more code for nothing.


(And why Crossbar sound has reset function, but no init function?)

I'll have a closer look at this one, maybe it's a problem.

Regards

Laurent

--
Ce message et  toutes les pieces jointes (ci-apres  le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute  utilisation ou  diffusion  non autorisee  est interdite.   Tout
message  etant  susceptible  d'alteration,  l'emetteur  decline  toute
responsabilite au titre de  ce message  s'il a  ete altere, deforme ou
falsifie.
                -----------------------------------
This message and any  attachments (the "message") are confidential and
intended  solely   for  the   addressees.  Any  unauthorised   use  or
dissemination is prohibited. As e-mails are susceptible to alteration,
the issuer shall  not be  liable for  the  message if altered, changed
or falsified.



More information about the hatari-devel mailing list