diff options
Diffstat (limited to 'pico/lib/picoacph.c')
-rw-r--r-- | pico/lib/picoacph.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pico/lib/picoacph.c b/pico/lib/picoacph.c index 98feb6e..c06e860 100644 --- a/pico/lib/picoacph.c +++ b/pico/lib/picoacph.c @@ -157,7 +157,7 @@ typedef struct acph_subobj { } acph_subobj_t; -static pico_status_t acphInitialize(register picodata_ProcessingUnit this) { +static pico_status_t acphInitialize(register picodata_ProcessingUnit this, picoos_int32 r_mode) { acph_subobj_t * acph; picoos_uint16 i; @@ -193,6 +193,11 @@ static pico_status_t acphInitialize(register picodata_ProcessingUnit this) { acph->cbuf[i] = 0; } + if (r_mode == PICO_RESET_SOFT) { + /*following initializations needed only at startup or after a full reset*/ + return PICO_OK; + } + /* kb tabphones */ acph->tabphones = picoktab_getPhones(this->voice->kbArray[PICOKNOW_KBID_TAB_PHONES]); @@ -310,7 +315,7 @@ picodata_ProcessingUnit picoacph_newAccPhrUnit(picoos_MemoryManager mm, return NULL; } - acphInitialize(this); + acphInitialize(this, PICO_RESET_FULL); return this; } |