From 6a71d160dc27bba68dc0cec8ff7ce2764dd3654f Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 28 Feb 2008 16:35:11 +0200 Subject: [PATCH] Initialize the audio note subsystem --- src/mapper.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/mapper.c b/src/mapper.c index af39b45..84bbae4 100644 --- a/src/mapper.c +++ b/src/mapper.c @@ -36,6 +36,7 @@ #include #ifdef WITH_GST #include +#include "audio-note.h" #endif #include #include @@ -202,9 +203,14 @@ config_save(); config_save_repo(); map_download_deinit(); map_poi_deinit(); -#if defined (WITH_GST) && defined (WITH_ESPEAK) + +#if defined (WITH_GST) +#if defined (WITH_ESPEAK) speak_deinit(); #endif +audio_note_deinit(); +#endif + gps_disconnect(_gps); gps_free(_gps); osm_deinit(); @@ -329,12 +335,16 @@ switch (mis) { w="OSM"; break; case MAPPER_INIT_VOICE: - #if defined (WITH_GST) && defined (WITH_ESPEAK) +#if defined (WITH_GST) + if (audio_note_init()==FALSE) + g_printerr("Audio note init failed\n"); +#if defined (WITH_ESPEAK) if (speak_init("en",_voice_speed,_voice_pitch)==FALSE) { g_printerr("Espeak init failed\n"); popup_error(_window, "Speech init failed. Disabled."); } - #endif +#endif +#endif mis=MAPPER_INIT_MISC; p=0.85; w="Speech"; -- 2.39.5