From: Kaj-Michael Lang Date: Thu, 28 Feb 2008 14:35:11 +0000 (+0200) Subject: Initialize the audio note subsystem X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a71d160dc27bba68dc0cec8ff7ce2764dd3654f;p=mapper Initialize the audio note subsystem --- 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";