Use the error context API in espeak_ng_Initialize.

This commit is contained in:
Reece H. Dunn
2016-01-04 10:51:19 +00:00
parent 378490b65f
commit 013e282d1a
10 changed files with 55 additions and 25 deletions
+2 -2
View File
@@ -313,7 +313,7 @@ ESPEAK_NG_API void espeak_ng_InitializePath(const char *path)
#endif
}
ESPEAK_NG_API espeak_ng_STATUS espeak_ng_Initialize(void)
ESPEAK_NG_API espeak_ng_STATUS espeak_ng_Initialize(espeak_ng_ERROR_CONTEXT *context)
{
int param;
int srate = 22050; // default sample rate 22050 Hz
@@ -328,7 +328,7 @@ ESPEAK_NG_API espeak_ng_STATUS espeak_ng_Initialize(void)
}
}
espeak_ng_STATUS result = LoadPhData(&srate);
espeak_ng_STATUS result = LoadPhData(&srate, context);
if (result != ENS_OK)
return result;