Re: [hatari-devel] Cracks in the sound (YM+DMA) |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
Hi Nicolas, This patch has sound clipping for LMC1992 saturation distortion (same code as before for expedience, change it to your liking). See hunk at line 642 (dmaSnd.c). This patch also fixes the sound overflow when DMA samples and YM2149 are summed on the STe. See all other hunks. The sound overflow fix incurs no performance penalty because the YM2149 volume table is scaled by 1/2 in sound.c for the STe; and the LMC1992 gain is doubled in dmaSnd.c to compensate afterwards. DMA sound samples are scaled and summed with 1/2 attenuated YM2149 to avoid overflow. DC filtering removes the large dc offset before the gain is scaled up by 2. David
Attachment:
Sound.crack.patch
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |