diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2006-09-26 17:44:43 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2006-09-26 17:44:43 +0000 |
commit | 287deb0e74855349baebe30162303b08ff4bbf5e (patch) | |
tree | 5f0f0b82aefa00c0e65ade8811d498b125ad2886 /apps/talk.c | |
parent | 183499a2d43ebcec9a522bbcbde506f0b3c5e01d (diff) | |
download | rockbox-287deb0e74855349baebe30162303b08ff4bbf5e.tar.gz rockbox-287deb0e74855349baebe30162303b08ff4bbf5e.zip |
Fixed voice units in recording quality and filesplit by size options.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11063 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/talk.c')
-rw-r--r-- | apps/talk.c | 40 |
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 |