summaryrefslogtreecommitdiff
path: root/apps/talk.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/talk.c')
-rw-r--r--apps/talk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/talk.c b/apps/talk.c
index b561d5cde8..ec0ba67f38 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -31,6 +31,7 @@
#include "kernel.h"
#include "settings.h"
#include "settings_list.h"
+#include "splash.h"
#if CONFIG_CODEC == SWCODEC
#include "voice_thread.h"
#else
@@ -937,8 +938,10 @@ void talk_init(void)
if (filehandle > 0)
{
if (!load_voicefile_index(filehandle))
+ {
+ splashf(HZ * 2, str(LANG_READ_FAILED), ".voice");
goto out;
-
+ }
/* Now determine the maximum buffer size needed for the voicefile.
* The below pretends the entire voicefile would be loaded. The buffer
* size is eventually capped later on in load_voicefile_data() */