aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-09-22 21:07:28 -0700
committerScott Jackson <daneren2005@gmail.com>2014-09-22 21:07:28 -0700
commit0e54ba2dc6f3c548e954669df94f57d46a34a84c (patch)
tree4598dfaa4d235d81856a5d8926b4cc5a7fc5d696 /src
parent091bba2a329f236251d69697f892b923796a5e5c (diff)
downloaddsub-0e54ba2dc6f3c548e954669df94f57d46a34a84c.tar.gz
dsub-0e54ba2dc6f3c548e954669df94f57d46a34a84c.tar.bz2
dsub-0e54ba2dc6f3c548e954669df94f57d46a34a84c.zip
Make replay gain optional
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java2
-rw-r--r--src/github/daneren2005/dsub/util/Constants.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index 1e32bd2a..9c2e2ce5 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -1940,7 +1940,7 @@ public class DownloadService extends Service {
try {
float[] rg = BastpUtil.getReplayGainValues(downloadFile.getFile().getCanonicalPath()); /* track, album */
float adjust = 0f;
- if (Util.getPreferences(this).getBoolean(Constants.PREFERENCES_KEY_REPLAY_GAIN, true)) {
+ if (Util.getPreferences(this).getBoolean(Constants.PREFERENCES_KEY_REPLAY_GAIN, false)) {
// If playing a single album or no track gain, use album gain
if((singleAlbum || rg[0] == 0) && rg[1] != 0) {
adjust = rg[1];
diff --git a/src/github/daneren2005/dsub/util/Constants.java b/src/github/daneren2005/dsub/util/Constants.java
index a61102fe..88dfa086 100644
--- a/src/github/daneren2005/dsub/util/Constants.java
+++ b/src/github/daneren2005/dsub/util/Constants.java
@@ -144,6 +144,7 @@ public final class Constants {
public static final String PREFERENCES_KEY_SERVER_SYNC = "serverSync";
public static final String PREFERENCES_KEY_RECENT_COUNT = "mostRecentCount";
public static final String PREFERENCES_KEY_MENU_RATING = "showRating";
+ public static final String PREFERENCES_KEY_REPLAY_GAIN = "replayGain";
public static final String OFFLINE_SCROBBLE_COUNT = "scrobbleCount";
public static final String OFFLINE_SCROBBLE_ID = "scrobbleID";