[hatari-devel] STE sound breakage with lower sound frequencies

Nicolas Pomarède npomarede at corp.free.fr
Mon Feb 14 23:35:23 CET 2011


Le 14/02/2011 20:16, Eero Tamminen a écrit :
> Currently it's called by Configuration_Apply() which is called from:
> - main.c after config&  options are parsed at startup
> - configuration.c when memory state is restored
> - change.c when configuration is changed
>
> I.e. it already does that.
>
> The problem seems to be be that Configuration_Apply() is called between
> Audio_UnInit() and Audio_Init() *and* DmaSnd_Init_Bass_and_Treble_Tables()
> is called from Audio_SetOutputAudioFreq() only if audio is enabled.
>
> ->  I think Audio_SetOutputAudioFreq() should be called from Audio_Init().

Or maybe we could call DmaSnd_Init_Bass_and_Treble_Tables in 
Audio_SetOutputAudioFreq() in all cases ? (even if bSoundWorking is false).
This would make a very small modification and calling 
Audio_SetOutputAudioFreq even if sound is really off should not be a 
real problem.

WDYT ?

Nicolas



More information about the hatari-devel mailing list