ReplayGainConfig: add struct ReplayGainConfig, move globals to ReplayGainGlobal.cxx

This commit is contained in:
Max Kellermann
2016-11-25 11:13:08 +01:00
parent dc5984d0e0
commit 77c1f54876
11 changed files with 69 additions and 40 deletions

View File

@@ -24,6 +24,8 @@
#include "Compiler.h"
#include "ReplayGainMode.hxx"
struct ReplayGainConfig;
struct ReplayGainTuple {
float gain;
float peak;
@@ -38,8 +40,7 @@ struct ReplayGainTuple {
}
gcc_pure
float CalculateScale(float preamp, float missing_preamp,
bool peak_limit) const;
float CalculateScale(const ReplayGainConfig &config) const;
};
struct ReplayGainInfo {