aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-10-07 19:21:08 -0700
committerScott Jackson <daneren2005@gmail.com>2014-10-07 19:21:08 -0700
commit50292a33938016f410effcb8f0aca1c6263e8410 (patch)
treefbd3d8878b124aba62e0048626942b539801fb7f /res
parent76a45b603fac943732d1eb8e219bd10e03f2fb69 (diff)
downloaddsub-50292a33938016f410effcb8f0aca1c6263e8410.tar.gz
dsub-50292a33938016f410effcb8f0aca1c6263e8410.tar.bz2
dsub-50292a33938016f410effcb8f0aca1c6263e8410.zip
Add setting for where to read replay gain tags from
Diffstat (limited to 'res')
-rw-r--r--res/values/arrays.xml10
-rw-r--r--res/values/strings.xml4
-rw-r--r--res/xml/settings.xml7
3 files changed, 21 insertions, 0 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index deb8fdf5..3e85c982 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -225,4 +225,14 @@
<item>@string/settings.sync_interval_1440</item>
</string-array>
+ <string-array name="replayGainTypeValues">
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ </string-array>
+ <string-array name="replayGainTypeNames">
+ <item>@string/settings.replay_gain_type.smart</item>
+ <item>@string/settings.replay_gain_type.album</item>
+ <item>@string/settings.replay_gain_type.track</item>
+ </string-array>
</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index bdc0c126..0fdb2361 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -431,6 +431,10 @@
<string name="settings.admin_enabled_summary">Whether or not to display the admin listing in the pull out drawer</string>
<string name="settings.replay_gain">Replay Gain</string>
<string name="settings.replay_gain_summary">Whether or not to scale playback volume by track and album replay gain tags</string>
+ <string name="settings.replay_gain_type">Read from tags</string>
+ <string name="settings.replay_gain_type.smart">Smart detection</string>
+ <string name="settings.replay_gain_type.album">Album tags</string>
+ <string name="settings.replay_gain_type.track">Track tags</string>
<string name="settings.replay_gain_bump">Replay Gain Pre-amp</string>
<string name="settings.replay_gain_untagged">Songs without Replay Gain</string>
diff --git a/res/xml/settings.xml b/res/xml/settings.xml
index 394c268f..af782ac1 100644
--- a/res/xml/settings.xml
+++ b/res/xml/settings.xml
@@ -369,6 +369,13 @@
android:key="replayGain"
android:defaultValue="false"/>
+ <ListPreference
+ android:title="@string/settings.replay_gain_type"
+ android:key="replayGainType"
+ android:defaultValue="1"
+ android:entryValues="@array/replayGainTypeValues"
+ android:entries="@array/replayGainTypeNames"/>
+
<github.daneren2005.dsub.view.SeekBarPreference
android:key="replayGainBump2"
android:dialogLayout="@layout/seekbar_preference"