summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-27 19:20:51 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-27 19:20:51 +0000
commit4cdcbb97bcc9398b111b133b8284902fb9af49c7 (patch)
tree4305841804eaed2ca7e936353f94c20bc2789cd1
parentfa1afb72c9b668ded3290b6d918b28bb375c3ee0 (diff)
New option, ID3 tag order
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4965 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/lang/english.lang18
-rw-r--r--apps/settings.c4
-rw-r--r--apps/settings.h2
-rw-r--r--apps/settings_menu.c10
4 files changed, 33 insertions, 1 deletions
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index 055c90bd7c..99d3520cbc 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -2811,3 +2811,21 @@ desc: in shutdown screen
eng: "Press OFF to shut down"
voice: ""
new:
+
+id: LANG_ID3_ORDER
+desc: in playback settings screen
+eng: "ID3 tag priority"
+voice: "ID3 tag priority"
+new:
+
+id: LANG_ID3_V1_FIRST
+desc: in playback settings screen
+eng: "V1 then V2"
+voice: "Version 1 then version 2"
+new:
+
+id: LANG_ID3_V2_FIRST
+desc: in playback settings screen
+eng: "V2 then V1"
+voice: "Version 2 then version 1"
+new:
diff --git a/apps/settings.c b/apps/settings.c
index 83d69710df..ba5a668d3c 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -321,7 +321,6 @@ static const struct bit_entry hd_bits[] =
{2, S_O(talk_file), 0, "talk file", "off,number,spell" },
{1, S_O(talk_menu), true, "talk menu", off_on },
- /* new stuff to be added at the end */
/* If values are just added to the end, no need to bump the version. */
{2, S_O(sort_file), 0, "sort files", "alpha,oldest,newest,type" },
{2, S_O(sort_dir), 0, "sort dirs", "alpha,oldest,newest" },
@@ -330,6 +329,9 @@ static const struct bit_entry hd_bits[] =
{9, S_O(mdb_center), 0, "mdb center", NULL},
{9, S_O(mdb_shape), 0, "mdb shape", NULL},
{1, S_O(mdb_enable), 0, "mdb enable", off_on},
+ {1, S_O(id3_v1_first), 0, "id3 tag order", "v2 first,v1 first"},
+
+ /* new stuff to be added at the end */
/* Sum of all bit sizes must not grow beyond 0xB8*8 = 1472 */
};
diff --git a/apps/settings.h b/apps/settings.h
index fc9a004cfc..36b4a839a4 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -230,6 +230,8 @@ struct user_settings
bool line_in; /* false=off, true=active */
+ bool id3_v1_first; /* true = ID3V1 has prio over ID3V2 tag */
+
/* playlist viewer settings */
bool playlist_viewer_icons; /* display icons on viewer */
bool playlist_viewer_indices; /* display playlist indices on viewer */
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 1141361281..0187da376d 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -980,6 +980,15 @@ static bool ff_rewind_settings_menu(void)
return result;
}
+static bool id3_order(void)
+{
+ return set_bool_options( str(LANG_ID3_ORDER),
+ &global_settings.id3_v1_first,
+ STR(LANG_ID3_V1_FIRST),
+ STR(LANG_ID3_V2_FIRST),
+ mpeg_id3_options);
+}
+
static bool playback_settings_menu(void)
{
int m;
@@ -993,6 +1002,7 @@ static bool playback_settings_menu(void)
{ ID2P(LANG_WIND_MENU), ff_rewind_settings_menu },
{ ID2P(LANG_MP3BUFFER_MARGIN), buffer_margin },
{ ID2P(LANG_FADE_ON_STOP), set_fade_on_stop },
+ { ID2P(LANG_ID3_ORDER), id3_order },
};
bool old_shuffle = global_settings.playlist_shuffle;