From: Kaj-Michael Lang Date: Thu, 20 Sep 2007 10:36:09 +0000 (+0300) Subject: Oops.. fix missing * X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2d2dbb26f8a2c4b5166d66e43992eaa84b22752;p=mapper Oops.. fix missing * --- diff --git a/src/speak.c b/src/speak.c index 772fce4..0cc553d 100644 --- a/src/speak.c +++ b/src/speak.c @@ -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; diff --git a/src/speak.h b/src/speak.h index 46219ca..ae8eb25 100644 --- a/src/speak.h +++ b/src/speak.h @@ -3,7 +3,7 @@ #include -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);