diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-10-11 21:07:24 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-10-11 21:07:24 -0700 |
commit | ec0e1376d0dc639fcee174117b1728709a07063a (patch) | |
tree | 5478e9a3efc51f3b206b57b4b0f8188bd34809cb | |
parent | b0fcec4826bb211c9723d02730602c344163962a (diff) | |
download | dsub-ec0e1376d0dc639fcee174117b1728709a07063a.tar.gz dsub-ec0e1376d0dc639fcee174117b1728709a07063a.tar.bz2 dsub-ec0e1376d0dc639fcee174117b1728709a07063a.zip |
Fix default replay gain not being 0 db
-rw-r--r-- | res/xml/settings.xml | 2 | ||||
-rw-r--r-- | 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; } } |