diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2018-12-15 13:09:07 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2018-12-15 13:09:51 -0500 |
commit | c2308bdf400e79b6f821885034e0f44abd6877a3 (patch) | |
tree | df982daf972d92c731a3716ec5955beb86350960 /apps | |
parent | d8ce84c38203526b6dc55e4178e709ab8afe2b9a (diff) | |
download | rockbox-c2308bdf400e79b6f821885034e0f44abd6877a3.tar.gz rockbox-c2308bdf400e79b6f821885034e0f44abd6877a3.zip |
Fix HWCODEC builds.
Change-Id: I7abed5dab9b4d0d053c274404dc4dc06864aa060
Diffstat (limited to 'apps')
-rw-r--r-- | apps/screens.c | 2 | ||||
-rw-r--r-- | apps/talk.c | 2 |
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 */ |
678 | static void say_gain(char *buf) | 679 | static 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 | ||
733 | static const char * id3_get_or_speak_info(int selected_item, void* data, | 735 | static 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. */ |
1178 | int talk_dir_or_spell(const char* dirname, | 1177 | int 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. */ |