summaryrefslogtreecommitdiff
path: root/aoview/aoview_main.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-06-30 15:25:52 -0700
committerKeith Packard <keithp@keithp.com>2009-06-30 15:25:52 -0700
commite506ed4b6efb86eab50204658fcd433b987e3831 (patch)
tree2fa17d91658948bbc3647cc70c10db06f1535b90 /aoview/aoview_main.c
parent5b988e0146075d57434f8484e1ec9fcf3e183df2 (diff)
Integrate flite into aoview directly. Fix great circle computation.
Use a separate thread for flite rather than a separate program. Save voice state to gconf. Add filters for replay file selection Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'aoview/aoview_main.c')
-rw-r--r--aoview/aoview_main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/aoview/aoview_main.c b/aoview/aoview_main.c
index 99de1473..36a82e0e 100644
--- a/aoview/aoview_main.c
+++ b/aoview/aoview_main.c
@@ -31,6 +31,8 @@ static void destroy_event(GtkWidget *widget, gpointer data)
gtk_main_quit();
}
+extern int _Xdebug;
+
int main(int argc, char **argv)
{
GladeXML *xml = NULL;
@@ -40,12 +42,13 @@ int main(int argc, char **argv)
static struct option long_options[] = {
{ "device", 1, 0, 'd'},
+ { "sync", 0, 0, 's'},
{ 0, 0, 0, 0 }
};
for (;;) {
int c, temp;
- c = getopt_long_only(argc, argv, "d:", long_options, &temp);
+ c = getopt_long_only(argc, argv, "sd:", long_options, &temp);
if (c == -1)
break;
@@ -53,11 +56,15 @@ int main(int argc, char **argv)
case 'd':
device = optarg;
break;
+ case 's':
+ _Xdebug = 1;
+ break;
default:
usage();
}
}
+ g_thread_init(NULL);
gtk_init(&argc, &argv);
glade_init();
@@ -95,6 +102,8 @@ int main(int argc, char **argv)
aoview_label_init(xml);
+ aoview_voice_speak("rocket flight monitor ready\n");
+
gtk_main();
return 0;