summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-12-15 13:09:07 -0500
committerSolomon Peachy <pizza@shaftnet.org>2018-12-15 13:09:51 -0500
commitc2308bdf400e79b6f821885034e0f44abd6877a3 (patch)
treedf982daf972d92c731a3716ec5955beb86350960
parentd8ce84c38203526b6dc55e4178e709ab8afe2b9a (diff)
downloadrockbox-c2308bdf400e79b6f821885034e0f44abd6877a3.tar.gz
rockbox-c2308bdf400e79b6f821885034e0f44abd6877a3.zip
Fix HWCODEC builds.
Change-Id: I7abed5dab9b4d0d053c274404dc4dc06864aa060
-rw-r--r--apps/screens.c2
-rw-r--r--apps/talk.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 527419ff7a..608f055de0 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -674,6 +674,7 @@ static void say_number_and_spell(char *buf, bool year_style)
674 } 674 }
675} 675}
676 676
677#if CONFIG_CODEC == SWCODEC
677/* Say a replaygain ID3 value from its text form */ 678/* Say a replaygain ID3 value from its text form */
678static void say_gain(char *buf) 679static void say_gain(char *buf)
679{ 680{
@@ -729,6 +730,7 @@ static void say_gain(char *buf)
729 }else /* we didn't find a number, just spell everything */ 730 }else /* we didn't find a number, just spell everything */
730 talk_spell(buf, true); 731 talk_spell(buf, true);
731} 732}
733#endif
732 734
733static const char * id3_get_or_speak_info(int selected_item, void* data, 735static const char * id3_get_or_speak_info(int selected_item, void* data,
734 char *buffer, size_t buffer_len, 736 char *buffer, size_t buffer_len,
diff --git a/apps/talk.c b/apps/talk.c
index bcf7a49acc..8a2a809c37 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -1172,7 +1172,6 @@ int talk_file_or_spell(const char *dirname, const char *filename,
1172 return 0; 1172 return 0;
1173} 1173}
1174 1174
1175#if CONFIG_CODEC == SWCODEC
1176/* Play a directory's .talk thumbnail, fallback to spelling the filename, or 1175/* Play a directory's .talk thumbnail, fallback to spelling the filename, or
1177 go straight to spelling depending on settings. */ 1176 go straight to spelling depending on settings. */
1178int talk_dir_or_spell(const char* dirname, 1177int talk_dir_or_spell(const char* dirname,
@@ -1189,7 +1188,6 @@ int talk_dir_or_spell(const char* dirname,
1189 return talk_spell_basename(dirname, prefix_ids, enqueue); 1188 return talk_spell_basename(dirname, prefix_ids, enqueue);
1190 return 0; 1189 return 0;
1191} 1190}
1192#endif
1193 1191
1194/* Speak thumbnail for each component of a full path, again falling 1192/* Speak thumbnail for each component of a full path, again falling
1195 back or going straight to spelling depending on settings. */ 1193 back or going straight to spelling depending on settings. */