summaryrefslogtreecommitdiff
path: root/apps/talk.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/talk.c')
-rw-r--r--apps/talk.c40
1 files changed, 27 insertions, 13 deletions
diff --git a/apps/talk.c b/apps/talk.c
index 21c6f4bb1a..1da24153d2 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -717,19 +717,33 @@ int talk_value(long n, int unit, bool enqueue)
717 int unit_id; 717 int unit_id;
718 static const int unit_voiced[] = 718 static const int unit_voiced[] =
719 { /* lookup table for the voice ID of the units */ 719 { /* lookup table for the voice ID of the units */
720 -1, -1, -1, /* regular ID, int, signed */ 720 [0 ... UNIT_LAST-1] = -1, /* regular ID, int, signed */
721 VOICE_MILLISECONDS, /* here come the "real" units */ 721 [UNIT_MS]
722 VOICE_SECONDS, 722 = VOICE_MILLISECONDS, /* here come the "real" units */
723 VOICE_MINUTES, 723 [UNIT_SEC]
724 VOICE_HOURS, 724 = VOICE_SECONDS,
725 VOICE_KHZ, 725 [UNIT_MIN]
726 VOICE_DB, 726 = VOICE_MINUTES,
727 VOICE_PERCENT, 727 [UNIT_HOUR]
728 VOICE_MILLIAMPHOURS, 728 = VOICE_HOURS,
729 VOICE_PIXEL, 729 [UNIT_KHZ]
730 VOICE_PER_SEC, 730 = VOICE_KHZ,
731 VOICE_HERTZ, 731 [UNIT_DB]
732 VOICE_KBIT_PER_SEC, 732 = VOICE_DB,
733 [UNIT_PERCENT]
734 = VOICE_PERCENT,
735 [UNIT_MAH]
736 = VOICE_MILLIAMPHOURS,
737 [UNIT_PIXEL]
738 = VOICE_PIXEL,
739 [UNIT_PER_SEC]
740 = VOICE_PER_SEC,
741 [UNIT_HERTZ]
742 = VOICE_HERTZ,
743 [UNIT_MB]
744 = LANG_MEGABYTE,
745 [UNIT_KBIT]
746 = VOICE_KBIT_PER_SEC,
733 }; 747 };
734 748
735#if CONFIG_CODEC != SWCODEC 749#if CONFIG_CODEC != SWCODEC