Below is the code to get gain and peak.
TrackGain trackGain = new TrackGain(44100, 16);
foreach (sampleSet in track) {
trackGain.AnalyzeSamples(leftSamples, rightSamples)
}
double gain = trackGain.GetGain();
double peak = trackGain.GetPeak();
Let's say I get gain of 5.34 and peak of 1.33
How can I determine the volume adjustment that I need to make for that track? A formula to determine would be great.