]> err.no Git - mapper/commitdiff
Oops.. fix missing *
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 20 Sep 2007 10:36:09 +0000 (13:36 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 20 Sep 2007 10:36:09 +0000 (13:36 +0300)
src/speak.c
src/speak.h

index 772fce46ae837a4f8a0b3970bb173879a8ab995f..0cc553db3f150abd1ec690a552f07c7dff38318e 100644 (file)
@@ -143,21 +143,22 @@ return 0;
 }
 
 gboolean
-speak_init(gchar voice, guint speed, guint pitch)
+speak_init(gchar *voice, guint speed, guint pitch)
 {
 erate=espeak_Initialize(AUDIO_OUTPUT_RETRIEVAL, 100, NULL, 0);
-if (erate==-1) 
+if (erate==-1)
        return FALSE;
 
 espeak_SetSynthCallback(espeak_cb);
 espeak_SetVoiceByName(voice);
-espeak_SetParameter(espeakRATE, speed,0);
-espeak_SetParameter(espeakPITCH, pitch,0);
-espeak_SetParameter(espeakVOLUME, 100,0);
+espeak_SetParameter(espeakRATE, speed, 0);
+espeak_SetParameter(espeakPITCH, pitch, 0);
+espeak_SetParameter(espeakVOLUME, 100, 0);
 if (speak_create_pipeline()==FALSE)
        return FALSE;
 
-bus = gst_pipeline_get_bus (GST_PIPELINE (ge.pipeline));
+bus=gst_pipeline_get_bus (GST_PIPELINE (ge.pipeline));
+g_assert(bus);
 gst_bus_add_watch (bus, bus_call, NULL);
 
 return TRUE;
index 46219ca9449e913d03e1c2f2c4dc8f4d95d7c208..ae8eb254e45811d6c0fbda706b22676ae58fd926 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <glib.h>
 
-gboolean speak_init(gchar voice, guint speed, guint pitch);
+gboolean speak_init(gchar *voice, guint speed, guint pitch);
 void speak_deinit(void);
 gboolean speak_stop(void);
 gboolean speak_speaking(void);