FreeCalypso > hg > fc-tourmaline
view bwsplash/bwsplash.pbm @ 275:79cfefc1e2b4
audio mode load: gracefully handle mode files of wrong AEC version
Unfortunately our change of enabling L1_NEW_AEC (which is necessary
in order to bring our Calypso ARM fw into match with the underlying
DSP reality) brings along a change in the audio mode file binary
format and file size - all those new tunable AEC parameters do need
to be stored somewhere, after all. But we already have existing
mode files in the old format, and setting AEC config to garbage when
loading old audio modes (which is what would happen without the
present change) is not an appealing proposition.
The solution implemented in the present change is as follows: the
audio mode loading code checks the file size, and if it differs
from the active version of T_AUDIO_MODE, the T_AUDIO_AEC_CFG structure
is cleared - set to the default (disabled AEC) for the compiled type
of AEC. We got lucky in that this varying T_AUDIO_AEC_CFG structure
sits at the end of T_AUDIO_MODE!
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 30 Jul 2021 02:55:48 +0000 |
parents | 4d9f24c501f3 |
children |
line wrap: on
line source
P1 80 30 11111110000000000000000000000111111000000000011000000000000000000000000000000000 11111110000000000000000000000111011100000000011000000000000000000000000000000000 11000000110100011000000110001100001100011100011011000011011011000011100000111000 11000000111101111110011111101100000000111111011001100110011111100111111011111100 11111110110001100110011001101100000000110011011001100110011000110110011011000110 11111110110011000110110001101100000000000111011001100100011000110111100011000110 11000000110011111110111111101100000110111111011000111100011000110011111011000110 11000000110011000000110000001100001101100011011000111100011000110000011011000110 11000000110001100110011001100111011101110111011000111000011101110110011011001110 11000000110001111100011111000011111000111111011000011000011111100111111001111100 00000000000000000000000000000000000000000000000000011000011000000000000000000000 00000000000000000000000000000000000000000000000000110000011000000000000000000000 00000000000000000000000000000000000000000000000001110000011000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000011000000000000000000000000000000000000000000000000000 00000000000000000000000000011000000011000110000000000000000000000000000000000000 00000000000000000000000000011000000000000110000011000000000000000000000000000000 00000000000000000000000000011000000011001111001111110000000000000000000000000000 00000000000000000000000000011000000011000110001100110000000000000000000000000000 00000000000000000000000000011000000011000110011000110000000000000000000000000000 00000000000000000000000000011000000011000110011111110000000000000000000000000000 00000000000000000000000000011000000011000110011000000000000000000000000000000000 00000000000000000000000000011111110011000110001100110000000000000000000000000000 00000000000000000000000000011111110011000111001111100000000000000000000000000000