summaryrefslogtreecommitdiff
path: root/apps/plugins/properties.c
diff options
context:
space:
mode:
authorJames D. Smith <smithjd15@gmail.com>2021-09-16 17:12:12 -0600
committerJames D. Smith <smithjd15@gmail.com>2021-09-16 17:52:53 -0600
commita9d3e096110674fa7147c2b3ada91ab7c67a7bd2 (patch)
treee0ff209ee787166cc8791f9bbe8f63484ef230eb /apps/plugins/properties.c
parent41e471e50e2d5b84c091f0574c0a0ee768092653 (diff)
downloadrockbox-a9d3e096110674fa7147c2b3ada91ab7c67a7bd2.tar.gz
rockbox-a9d3e096110674fa7147c2b3ada91ab7c67a7bd2.zip
File properties plugin: Add frequency.
Change-Id: I27453b39b5e4a6b4f97eff27a36c8ef2772ec092
Diffstat (limited to 'apps/plugins/properties.c')
-rw-r--r--apps/plugins/properties.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c
index e2c83217a4..12ea25f0c0 100644
--- a/apps/plugins/properties.c
+++ b/apps/plugins/properties.c
@@ -43,6 +43,7 @@ char str_year[MAX_PATH];
43char str_discnum[MAX_PATH]; 43char str_discnum[MAX_PATH];
44char str_tracknum[MAX_PATH]; 44char str_tracknum[MAX_PATH];
45char str_duration[32]; 45char str_duration[32];
46char str_frequency[32];
46 47
47unsigned nseconds; 48unsigned nseconds;
48unsigned long nsize; 49unsigned long nsize;
@@ -69,6 +70,7 @@ static const unsigned char* const props_file[] =
69 ID2P(LANG_PROPERTIES_DISCNUM), str_discnum, 70 ID2P(LANG_PROPERTIES_DISCNUM), str_discnum,
70 ID2P(LANG_PROPERTIES_TRACKNUM), str_tracknum, 71 ID2P(LANG_PROPERTIES_TRACKNUM), str_tracknum,
71 ID2P(LANG_PROPERTIES_DURATION), str_duration, 72 ID2P(LANG_PROPERTIES_DURATION), str_duration,
73 ID2P(LANG_PROPERTIES_FREQUENCY), str_frequency,
72}; 74};
73static const unsigned char* const props_dir[] = 75static const unsigned char* const props_dir[] =
74{ 76{
@@ -151,7 +153,9 @@ static bool file_properties(const char* selected_file)
151 "%s", id3.disc_string ? id3.disc_string : ""); 153 "%s", id3.disc_string ? id3.disc_string : "");
152 rb->snprintf(str_tracknum, sizeof str_tracknum, 154 rb->snprintf(str_tracknum, sizeof str_tracknum,
153 "%s", id3.track_string ? id3.track_string : ""); 155 "%s", id3.track_string ? id3.track_string : "");
154 num_properties += 10; 156 rb->snprintf(str_frequency, sizeof str_frequency,
157 "%ld Hz", id3.frequency ? : 0);
158 num_properties += 11;
155 159
156 if (dur > 0) 160 if (dur > 0)
157 { 161 {