Hi
This patch works well, but is incompatible with older snapshots.
Hatari plays DMA sound at the same level as before (unless you
use an old snapshot). New snapshots made with the newly patched
version will work properly with the newly patched version.
The problem is with using an old memory snapshot as the old gain
is used (in your case: 1.0/(65536.0*65536.0) ) which makes the
gain half as much as required.
If you did the snapshot with the patched version (the other way
around), you would get double the volume: 2.0/(65536.0*65536.0)
As can be seen in the preliminary observations, the patch was
double checked.
Note that DmaSnd_Init_Bass_and_Treble_Tables() can be executed
after all MemorySnapShot are restored, thus, overwriting the
erroneous gain from old snapshots. If this were done then
MemorySnapShot_Store(&lmc1992, sizeof(lmc1992));
would not be necessary. (see dmaSnd.c)