summaryrefslogtreecommitdiffstats
path: root/apps/talk.c
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2020-05-22 07:52:01 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2020-05-22 07:52:01 -0500
commitdcf8154c3244e1f41c62abdfec02169e7f14cd47 (patch)
tree85e3409d3a62559e195bea3c09000c16115e644d /apps/talk.c
parent74f358cf8b909aab5d1b9a157765ef6dcd8fe9dc (diff)
downloadrockbox-dcf8154c3244e1f41c62abdfec02169e7f14cd47.tar.gz
rockbox-dcf8154c3244e1f41c62abdfec02169e7f14cd47.tar.bz2
rockbox-dcf8154c3244e1f41c62abdfec02169e7f14cd47.zip
talk.h add failed to load splash
Change-Id: Ie355a52bb6c687d302dc3e39693b9ab40e2dd699
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() */