#include <glib/gi18n.h>
#ifdef WITH_GST
#include <gst/gst.h>
+#include "audio-note.h"
#endif
#include <gtk/gtk.h>
#include <fcntl.h>
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();
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";