From 4f36ea8fbf877e8af938c0bb16591f3c6cffd4f8 Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Sun, 14 Mar 2004 21:33:53 +0000 Subject: First step of the voice-UI: the menus can talk. You need a "voicefont" file in .rockbox to use this. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4381 a1c6a512-1295-4272-9138-f99709370657 --- apps/menu.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/menu.h') diff --git a/apps/menu.h b/apps/menu.h index 827de1da36..dbe5151178 100644 --- a/apps/menu.h +++ b/apps/menu.h @@ -23,10 +23,14 @@ #include struct menu_items { - unsigned char *desc; + unsigned char *desc; /* string */ + int voice_id; /* the associated voice clip, -1 if none */ bool (*function) (void); /* return true if USB was connected */ }; +/* convenience macro to have both string and ID as arguments */ +#define STR(id) str(id), id + int menu_init(struct menu_items* items, int count, int (*callback) (int keycode, int menu)); void menu_exit(int menu); -- cgit v1.2.3