summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/talk.c10
-rwxr-xr-xtools/genlang2
2 files changed, 9 insertions, 3 deletions
diff --git a/apps/talk.c b/apps/talk.c
index 0e3ff17a1b..b85997531d 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -37,7 +37,7 @@
37#include "lang.h" 37#include "lang.h"
38#include "talk.h" 38#include "talk.h"
39#include "metadata.h" 39#include "metadata.h"
40/*#define LOGF_ENABLE*/ 40#define LOGF_ENABLE
41#include "logf.h" 41#include "logf.h"
42#include "bitswap.h" 42#include "bitswap.h"
43#include "structec.h" 43#include "structec.h"
@@ -628,7 +628,13 @@ int talk_id(int32_t id, bool enqueue)
628 if (clipbuf == NULL) 628 if (clipbuf == NULL)
629 return -1; /* not present */ 629 return -1; /* not present */
630 630
631 logf("\ntalk_id: Say '%s'\n", str(id)); 631#ifdef LOGF_ENABLE
632 if (id > VOICEONLY_DELIMITER)
633 logf("\ntalk_id: Say voice clip 0x%x\n", id - 1);
634 else
635 logf("\ntalk_id: Say '%s'\n", str(id));
636#endif
637
632 queue_clip(clipbuf, clipsize, enqueue); 638 queue_clip(clipbuf, clipsize, enqueue);
633 639
634 return 0; 640 return 0;
diff --git a/tools/genlang b/tools/genlang
index 07eb9f1fb9..ee57396d89 100755
--- a/tools/genlang
+++ b/tools/genlang
@@ -658,7 +658,7 @@ MOO
658 658
659 $name =~ s/\"//g; # cut off the quotes 659 $name =~ s/\"//g; # cut off the quotes
660 660
661 printf HFILE_CORE (" %s,\n", $name); 661 printf HFILE_CORE (" %s, /* 0x%x */\n", $name, $i);
662 } 662 }
663 663
664 # Output end of enum 664 # Output end of enum