• src/doors/syncduke/syncduke_stubs.c

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Fri Jul 17 21:23:33 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/9d6fa39bad4799645773cd31
    Modified Files:
    src/doors/syncduke/syncduke_stubs.c
    Log Message:
    syncduke: map the MusicVolume slider linearly in dB

    The faithful percent->dB step left the MusicVolume slider mapping the game 0..255 to a 0..20 percent that SyncTERM then log-converted, so the slider
    was lumpy near the bottom and the trim was the opaque number 20. Map the
    slider LINEARLY IN DB instead -- how a real fader behaves -- between a
    shared floor and a readable per-door trim: SD_MUSIC_TRIM_DB -14 (the old SD_MUSIC_MAXV 20 in honest units) at the top, SD_MUSIC_FLOOR_DB -40 just
    above the 0 = OFF cutoff.

    Confirmed by ear. Same behaviour at the top of the slider; smoother, and a touch quieter, through the middle.

    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)