summaryrefslogtreecommitdiffstats
path: root/apps/talk.h
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2019-10-14 21:42:19 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2020-04-17 07:30:23 +0200
commitc93666d08e3ade6ee2c63d03180bac6d43536fff (patch)
tree224beaf1debd650bb8bceaeac3dcc5624fabb542 /apps/talk.h
parent4382d3f5ed1534b2f79d72cb7cf11dec9e1758c7 (diff)
downloadrockbox-c93666d08e3ade6ee2c63d03180bac6d43536fff.tar.gz
rockbox-c93666d08e3ade6ee2c63d03180bac6d43536fff.tar.bz2
rockbox-c93666d08e3ade6ee2c63d03180bac6d43536fff.zip
talk.h make voice files check for proper number of entries on load
In addition to version and target also check id1_max & id2_max for proper length before allowing voice file to be loaded Change-Id: I36016059d07781b0bb43dd9873bbb6e565298d76
Diffstat (limited to 'apps/talk.h')
-rw-r--r--apps/talk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/talk.h b/apps/talk.h
index e8a8645326..a643cd4f89 100644
--- a/apps/talk.h
+++ b/apps/talk.h
@@ -134,7 +134,7 @@ int talk_time_intervals(long time, int unit_idx, bool enqueue);
/* This (otherwise invalid) ID signals the end of the array. */
#define TALK_FINAL_ID LANG_LAST_INDEX_IN_ARRAY
-
+#define TALK_FINAL_ID_VOICEONLY LANG_LAST_VOICEONLY_INDEX_IN_ARRAY
/* Enqueue next utterance even if enqueue parameter is false: don't
interrupt the current utterance. */
void talk_force_enqueue_next(void);