Registered: 02/09/1999
Posts: 97
Loc: Boston, MA, US
Unfortunately modifying the global_gain alone as I suggested doesn't seem viable; some tests I did suggest it will result in utterly unrecognizable audio.
Any in-place modification of the MP3 stream would probably need to recode the entire frame (without overrunning the bit reservoir.)