[hatari-devel] STE sound breakage with lower sound frequencies
Nicolas Pomarède
npomarede at corp.free.fr
Sun Feb 13 23:35:41 CET 2011
Le 13/02/2011 23:16, Nicolas Pomarède a écrit :
> Yes, I was thinking about that too, it would explain why we can start
> Hatari at 44.1 and switch to 16 kHz and still have sound (but if we
> start directly at 16 kHz, we don't have sound) ; something is not
> correctly initialized.
>
> Nicolas
Eero,
looking at the code in change.c, I see that when audio freq is changed
this doesn't call Audio_SetOutputAudioFreq, but only Audio_Init (with
Audio_Uninit being called just before).
This explains why we get STE sound when starting at 44.1 kHz and going
to 16 kHz : DmaSnd_Init_Bass_and_Treble_Tables is not called, so we keep
a working 44.1 kHz IIR table.
If we start at 16 kHz, we create a 16 kHz IIR table and never change it
if we go to 44.1 kHz later.
Could you modify change.c to also call Audio_SetOutputAudioFreq ? (as it
is already the case when using --sound)
Thanks
Nicolas
More information about the hatari-devel
mailing list