[hatari-devel] LMC1992 and Microwire emulation
Laurent Sallafranque
laurent.sallafranque at free.fr
Wed Mar 24 23:18:22 CET 2010
Hello David,
I need a confirmation : in your code, you've added the following filter
if (dma.soundMode & DMASNDMODE_MONO)
{
/* Mono 8-bit */
/* Apply anti-aliasing low pass filter ? (mono) */
if ( /* UseLowPassFilter && */ (dma.soundMode == 3))
{
for (i = dma.frameStartAddr; i <= dma.frameEndAddr; i++) {
pFrameStart[i] = DmaSnd_LowPassFilterMono(pFrameStart[i]);
}
}
...
The same for stereo
But shouldn't the test be :
if ( /* UseLowPassFilter && */ ((dma.soundMode & 3) == 3))
I think you've forgotten the &3 to filter the MONO or STEREO bits.
Is it correct ?
Regards
Laurent
David Savinkoff a écrit :
> Hi Laurent,
>
> This patch adds an anti-aliasing filter when the dma uses the 50066 Hz
> sample rate. The tone controls correctly use nAudioFrequency. I think
> the sound should be perfect, or at least better than it was before.
>
More information about the hatari-devel
mailing list