summaryrefslogtreecommitdiff
path: root/apps/talk.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/talk.c')
-rw-r--r--apps/talk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/talk.c b/apps/talk.c
index b9bfdc82ac..c264bd7179 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -778,7 +778,7 @@ void talk_buffer_steal(void)
778int talk_id(int32_t id, bool enqueue) 778int talk_id(int32_t id, bool enqueue)
779{ 779{
780 long clipsize; 780 long clipsize;
781 size_t temp = talk_get_buffer(); 781 int temp = talk_get_buffer();
782 unsigned char* clipbuf; 782 unsigned char* clipbuf;
783 int32_t unit; 783 int32_t unit;
784 int decimals; 784 int decimals;
@@ -792,7 +792,7 @@ int talk_id(int32_t id, bool enqueue)
792 792
793 /* try to get audio buffer until talkbuf_init() is called */ 793 /* try to get audio buffer until talkbuf_init() is called */
794 if (!voicebuf) 794 if (!voicebuf)
795 voicebuf = audio_get_buffer(true, &temp); 795 voicebuf = audio_get_buffer(true, (size_t*)&temp);
796 796
797 if (p_voicefile == NULL && has_voicefile) 797 if (p_voicefile == NULL && has_voicefile)
798 load_voicefile(false, voicebuf, MIN(talk_get_buffer(),temp)); /* reload needed */ 798 load_voicefile(false, voicebuf, MIN(talk_get_buffer(),temp)); /* reload needed */