From ec0e1376d0dc639fcee174117b1728709a07063a Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sat, 11 Oct 2014 21:07:24 -0700 Subject: Fix default replay gain not being 0 db --- res/xml/settings.xml | 2 +- src/github/daneren2005/dsub/service/DownloadService.java | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/res/xml/settings.xml b/res/xml/settings.xml index af782ac1..795ae39d 100644 --- a/res/xml/settings.xml +++ b/res/xml/settings.xml @@ -380,7 +380,7 @@ android:key="replayGainBump2" android:dialogLayout="@layout/seekbar_preference" android:title="@string/settings.replay_gain_bump" - android:defaultValue="75" + android:defaultValue="150" myns:max="150" myns:min="-150" myns:stepSize="10" diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 3d480613..49a3bec1 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -2010,10 +2010,7 @@ public class DownloadService extends Service { int untagged = Integer.parseInt(prefs.getString(Constants.PREFERENCES_KEY_REPLAY_GAIN_UNTAGGED, "0")); adjust = (untagged - 150) / 10f; } else { - /* This song has some replay gain info, we are now going to apply the 'bump' value - ** The preferences stores the raw value of the seekbar, that's 0-150 - ** But we want -15 <-> +15, so 75 shall be zero */ - int bump = Integer.parseInt(prefs.getString(Constants.PREFERENCES_KEY_REPLAY_GAIN_BUMP, "0")); + int bump = Integer.parseInt(prefs.getString(Constants.PREFERENCES_KEY_REPLAY_GAIN_BUMP, "150")); adjust += (bump - 150) / 10f; } } -- cgit v1.2.3