Skip to content

Commit

Permalink
Don't bother parsing ReplayGain tags unless it is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
daneren2005 committed Jan 15, 2016
1 parent 28092dc commit 1a017dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2490,9 +2490,9 @@ private void applyReplayGain(MediaPlayer mediaPlayer, DownloadFile downloadFile)

SharedPreferences prefs = Util.getPreferences(this);
try {
float[] rg = BastpUtil.getReplayGainValues(downloadFile.getFile().getCanonicalPath()); /* track, album */
float adjust = 0f;
if (prefs.getBoolean(Constants.PREFERENCES_KEY_REPLAY_GAIN, false)) {
float[] rg = BastpUtil.getReplayGainValues(downloadFile.getFile().getCanonicalPath()); /* track, album */
boolean singleAlbum = false;

String replayGainType = prefs.getString(Constants.PREFERENCES_KEY_REPLAY_GAIN_TYPE, "1");
Expand Down

0 comments on commit 1a017dd

Please sign in to comment.