speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/7] remove module_audio_id = NULL; from module_load


From: Andrei Kholodnyi
Subject: [PATCH 3/7] remove module_audio_id = NULL; from module_load
Date: Sun, 28 Nov 2010 19:51:24 +0100

there is no need for it, since module_load is called once during start
and module_audio_id is already initialized to NULL at that time
---
 src/modules/espeak.c   |    2 --
 src/modules/festival.c |    2 --
 src/modules/flite.c    |    2 --
 src/modules/generic.c  |    1 -
 src/modules/ibmtts.c   |    2 --
 src/modules/ivona.c    |    2 --
 src/modules/pico.c     |    2 --
 7 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/src/modules/espeak.c b/src/modules/espeak.c
index 6fc412f..9dd7b9f 100644
--- a/src/modules/espeak.c
+++ b/src/modules/espeak.c
@@ -223,8 +223,6 @@ module_load(void)
        if (EspeakCapitalPitchRise == 1 || EspeakCapitalPitchRise == 2) {
                EspeakCapitalPitchRise = 0;
        }
-
-       module_audio_id = NULL;
        
        return OK;
 }
diff --git a/src/modules/festival.c b/src/modules/festival.c
index 5b78a34..9a5ca14 100644
--- a/src/modules/festival.c
+++ b/src/modules/festival.c
@@ -226,8 +226,6 @@ module_load(void)
      in Festival is fixed */
     MOD_OPTION_1_INT_REG(FestivalReopenSocket, 0);
 
-    module_audio_id = NULL;
-
     return 0;
 }
 
diff --git a/src/modules/flite.c b/src/modules/flite.c
index 72528bb..a2d9f87 100644
--- a/src/modules/flite.c
+++ b/src/modules/flite.c
@@ -143,8 +143,6 @@ module_init(char **status_info)
         return -1;
     }
 
-    module_audio_id = NULL;
-
     *status_info = g_strdup("Flite initialized successfully.");
 
     return 0;
diff --git a/src/modules/generic.c b/src/modules/generic.c
index 42477b3..10607a1 100644
--- a/src/modules/generic.c
+++ b/src/modules/generic.c
@@ -132,7 +132,6 @@ module_load(void)
 
     module_register_settings_voices();
 
-    module_audio_id = NULL;
     return 0;
 }
 
diff --git a/src/modules/ibmtts.c b/src/modules/ibmtts.c
index 18bc67c..8866195 100644
--- a/src/modules/ibmtts.c
+++ b/src/modules/ibmtts.c
@@ -523,8 +523,6 @@ module_init(char **status_info)
         return FATAL_ERROR;
     }
 
-    module_audio_id = NULL;
-
     *status_info = g_strdup("Ibmtts: Initialized successfully.");
 
     return OK;
diff --git a/src/modules/ivona.c b/src/modules/ivona.c
index 6336801..f08b86c 100644
--- a/src/modules/ivona.c
+++ b/src/modules/ivona.c
@@ -159,8 +159,6 @@ module_init(char **status_info)
         return -1;
     }
 
-    module_audio_id = NULL;
-
     *status_info = g_strdup("Ivona initialized successfully.");
 
     return 0;
diff --git a/src/modules/pico.c b/src/modules/pico.c
index 020b898..a7430fd 100644
--- a/src/modules/pico.c
+++ b/src/modules/pico.c
@@ -288,8 +288,6 @@ int module_load(void)
         MOD_OPTION_1_INT_REG(Debug, 0);
        MOD_OPTION_1_STR_REG(PicoLingwarePath,PICO_LINGWARE_PATH);
 
-       module_audio_id = NULL;
-
        return 0;
 }
 
-- 
1.6.0.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]