Hi Ian
I have the code working now.
The problem is, I'm not really sure it makes a difference.
Maybe I don't understand the concept.
Let me give you an example:
A given mp3file has the following values:
MP3gain = TrackGain +0.495db TrackPeak 0.534013
dbPowerAmp = TrackGain +0.460db TrackPeak 0.532684
These values are apparently close to each other.
TrackGain +0.46db means lower the volume. or?
TrackPeak means the highest level in the file, but what does the value represent? db?
Anyway, following your example and use TrackGain gives this result:
pow10(+0,46 / 20) yields about 1,05...
My statement is: BassFXvol.fVolume:=power(10,RGinfo.Gain/20)
Can that be right? The global volume is 1 and now I set it to 1,05?
I'm confused, please help (after Christmas will be fine).