Allow compilePhonemeData and compileIntonations to be called with a NULL log argument. If so, log is set to stderr.

This commit is contained in:
Michael Curran
2015-12-17 20:02:24 +10:00
parent 36be9ac13f
commit 5353e125dc
+2
View File
@@ -3567,6 +3567,7 @@ int LookupEnvelopeName(const char *name)
espeak_ng_STATUS espeak_ng_CompileIntonation(FILE *log)
{
if(!log) log=stderr;
int ix;
char *p;
char c;
@@ -3867,6 +3868,7 @@ espeak_ng_STATUS espeak_ng_CompileIntonation(FILE *log)
espeak_ng_STATUS espeak_ng_CompilePhonemeData(long rate, FILE *log)
{
if(!log) log=stderr;
WavegenInit(rate, 0);
WavegenSetVoice(voice);
return CompilePhonemeData2("phonemes", log);