We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb58870 + c1047df commit b713662Copy full SHA for b713662
1 file changed
core/src/main/java/xyz/gianlu/librespot/FileConfiguration.java
@@ -151,7 +151,14 @@ public boolean preloadEnabled() {
151
152
@Override
153
public float normalisationPregain() {
154
- return config.get("player.normalisationPregain");
+ float result;
155
+ Object raw = config.get("player.normalisationPregain");
156
+
157
+ if(raw instanceof Double) result = ((Double) raw).floatValue();
158
+ else if(raw instanceof Integer) result = ((Integer) raw).floatValue();
159
+ else throw new IllegalArgumentException(" normalisationPregain is not a valid number: " + raw.toString());
160
161
+ return result;
162
}
163
164
@NotNull
0 commit comments