diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/SOURCES | 2 | ||||
-rw-r--r-- | apps/screens.c | 4 | ||||
-rw-r--r-- | apps/talk.c | 5 | ||||
-rw-r--r-- | apps/talk.h | 14 |
4 files changed, 6 insertions, 19 deletions
diff --git a/apps/SOURCES b/apps/SOURCES index dc5b987b61..d50da979ad 100644 --- a/apps/SOURCES +++ b/apps/SOURCES | |||
@@ -36,9 +36,7 @@ settings.c | |||
36 | settings_list.c | 36 | settings_list.c |
37 | status.c | 37 | status.c |
38 | cuesheet.c | 38 | cuesheet.c |
39 | #if !defined(SIMULATOR) || CONFIG_CODEC == SWCODEC | ||
40 | talk.c | 39 | talk.c |
41 | #endif | ||
42 | tree.c | 40 | tree.c |
43 | #ifdef HAVE_TAGCACHE | 41 | #ifdef HAVE_TAGCACHE |
44 | tagtree.c | 42 | tagtree.c |
diff --git a/apps/screens.c b/apps/screens.c index ecd989043b..642d523c1d 100644 --- a/apps/screens.c +++ b/apps/screens.c | |||
@@ -1286,14 +1286,12 @@ static char* runtime_get_data(int selected_item, void* data, char* buffer) | |||
1286 | 1286 | ||
1287 | static int runtime_speak_data(int selected_item, void* data) | 1287 | static int runtime_speak_data(int selected_item, void* data) |
1288 | { | 1288 | { |
1289 | (void) data;(void)selected_item; | 1289 | (void) data; |
1290 | #if !defined(SIMULATOR) || CONFIG_CODEC == SWCODEC | ||
1291 | long title_ids[] = {LANG_RUNNING_TIME, LANG_TOP_TIME}; | 1290 | long title_ids[] = {LANG_RUNNING_TIME, LANG_TOP_TIME}; |
1292 | talk_ids(false, | 1291 | talk_ids(false, |
1293 | title_ids[selected_item/2], | 1292 | title_ids[selected_item/2], |
1294 | TALK_ID((selected_item == 0) ? global_status.runtime | 1293 | TALK_ID((selected_item == 0) ? global_status.runtime |
1295 | : global_status.topruntime, UNIT_TIME)); | 1294 | : global_status.topruntime, UNIT_TIME)); |
1296 | #endif | ||
1297 | return 0; | 1295 | return 0; |
1298 | } | 1296 | } |
1299 | 1297 | ||
diff --git a/apps/talk.c b/apps/talk.c index a7baf4927a..9b699a566d 100644 --- a/apps/talk.c +++ b/apps/talk.c | |||
@@ -347,6 +347,9 @@ void talk_force_shutup(void) | |||
347 | { | 347 | { |
348 | /* Most of this is MAS only */ | 348 | /* Most of this is MAS only */ |
349 | #if CONFIG_CODEC != SWCODEC | 349 | #if CONFIG_CODEC != SWCODEC |
350 | #ifdef SIMULATOR | ||
351 | return; | ||
352 | #endif | ||
350 | unsigned char* pos; | 353 | unsigned char* pos; |
351 | unsigned char* search; | 354 | unsigned char* search; |
352 | unsigned char* end; | 355 | unsigned char* end; |
@@ -656,7 +659,7 @@ int talk_file(const char* filename, bool enqueue) | |||
656 | 659 | ||
657 | if (size != 0 && size != size_for_thumbnail) /* Don't play missing or truncated clips */ | 660 | if (size != 0 && size != size_for_thumbnail) /* Don't play missing or truncated clips */ |
658 | { | 661 | { |
659 | #if CONFIG_CODEC != SWCODEC | 662 | #if CONFIG_CODEC != SWCODEC && !defined(SIMULATOR) |
660 | bitswap(p_thumbnail, size); | 663 | bitswap(p_thumbnail, size); |
661 | #endif | 664 | #endif |
662 | queue_clip(p_thumbnail, size, enqueue); | 665 | queue_clip(p_thumbnail, size, enqueue); |
diff --git a/apps/talk.h b/apps/talk.h index bb05bd8321..50759bc026 100644 --- a/apps/talk.h +++ b/apps/talk.h | |||
@@ -93,18 +93,6 @@ void talk_date(struct tm *tm, bool enqueue); | |||
93 | /* This (otherwise invalid) ID signals the end of the array. */ | 93 | /* This (otherwise invalid) ID signals the end of the array. */ |
94 | #define TALK_FINAL_ID LANG_LAST_INDEX_IN_ARRAY | 94 | #define TALK_FINAL_ID LANG_LAST_INDEX_IN_ARRAY |
95 | 95 | ||
96 | /* We don't build talk.c for hwcodec sims so we need to define these as empty */ | ||
97 | #if defined(SIMULATOR) && !(CONFIG_CODEC == SWCODEC) | ||
98 | #define talk_init(...) | ||
99 | #define talk_buffer_steal(...) | ||
100 | #define talk_shutup(...) | ||
101 | #define talk_force_enqueue_next(...) | ||
102 | #define talk_idarray(...) | ||
103 | #define talk_ids(...) | ||
104 | #define cond_talk_ids(...) | ||
105 | #define cond_talk_ids_fq(...) | ||
106 | #else | ||
107 | |||
108 | /* Enqueue next utterance even if enqueue parameter is false: don't | 96 | /* Enqueue next utterance even if enqueue parameter is false: don't |
109 | interrupt the current utterance. */ | 97 | interrupt the current utterance. */ |
110 | void talk_force_enqueue_next(void); | 98 | void talk_force_enqueue_next(void); |
@@ -135,5 +123,5 @@ int talk_idarray(long *idarray, bool enqueue); | |||
135 | talk_force_enqueue_next(); \ | 123 | talk_force_enqueue_next(); \ |
136 | } \ | 124 | } \ |
137 | }while(0) | 125 | }while(0) |
138 | #endif /*defined(SIMULATOR) && !(CONFIG_CODEC == SWCODEC)*/ | 126 | |
139 | #endif /* __TALK_H__ */ | 127 | #endif /* __TALK_H__ */ |