summaryrefslogtreecommitdiffstats
path: root/apps/radio/radio.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2011-06-26 14:42:24 +0000
committerNils Wallménius <nils@rockbox.org>2011-06-26 14:42:24 +0000
commitaf8122b1cb6ffd23b610c5e26ae40b125f67bfd6 (patch)
tree7d80287874b23efc6428e9ab9467a08290293332 /apps/radio/radio.c
parent737f3fed0d8be60960f23e9c6636b5dc2c5f7999 (diff)
downloadrockbox-af8122b1cb6ffd23b610c5e26ae40b125f67bfd6.tar.gz
rockbox-af8122b1cb6ffd23b610c5e26ae40b125f67bfd6.tar.bz2
rockbox-af8122b1cb6ffd23b610c5e26ae40b125f67bfd6.zip
Reuse a general voice function instead of reinventing the wheel.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30080 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/radio/radio.c')
-rw-r--r--apps/radio/radio.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/apps/radio/radio.c b/apps/radio/radio.c
index 4da37b2ca5..e4b14c843e 100644
--- a/apps/radio/radio.c
+++ b/apps/radio/radio.c
@@ -364,18 +364,6 @@ static void end_search(void)
search_dir = 0;
}
-/* Speak a frequency. */
-void talk_freq(int freq, bool enqueue)
-{
- freq /= 10000;
- talk_number(freq / 100, enqueue);
- talk_id(LANG_POINT, true);
- talk_number(freq % 100 / 10, true);
- if (freq % 10)
- talk_number(freq % 10, true);
-}
-
-
void radio_screen(void)
{
bool done = false;
@@ -798,7 +786,7 @@ void radio_screen(void)
bool enqueue = false;
if (radio_mode == RADIO_SCAN_MODE)
{
- talk_freq(curr_freq, enqueue);
+ talk_value_decimal(curr_freq, UNIT_INT, 6, enqueue);
enqueue = true;
}
if (radio_current_preset() >= 0)