diff --git a/README.md b/README.md index db8647bf..1444b061 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,6 @@ If you are building on the command line, you will also need either: 1. Set the location of the Android SDK: - $ export ANDROID_HOME= 2. Build the project: $ ./autogen.sh diff --git a/phsource/ph_english b/phsource/ph_english index 427e5da3..46b1996e 100644 --- a/phsource/ph_english +++ b/phsource/ph_english @@ -250,7 +250,7 @@ endphoneme phoneme i // optional variant of [I] for end of words vowel starttype #i endtype #i - ipa ɪ + ipa i length 140 IfNextVowelAppend(;) FMT(vowel/ii_7) diff --git a/src/dictionary.cpp b/src/dictionary.cpp index 02480dc8..02d12eb7 100644 --- a/src/dictionary.cpp +++ b/src/dictionary.cpp @@ -1,6 +1,7 @@ /*************************************************************************** * Copyright (C) 2005 to 2013 by Jonathan Duddington * * email: jonsd@users.sourceforge.net * + * Copyright (C) 2013 Reece H. Dunn * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -773,6 +774,10 @@ const char *GetTranslatedPhonemeString(int phoneme_mode) strcpy(&phon_out_buf[phon_out_ix], phon_buf); phon_out_ix += len; } + + if (!phon_out_buf) + return(""); + phon_out_buf[phon_out_ix] = 0; return(phon_out_buf); diff --git a/src/wave.cpp b/src/wave.cpp index b3e6593a..487df13b 100644 --- a/src/wave.cpp +++ b/src/wave.cpp @@ -31,7 +31,6 @@ #include #include -#include "portaudio.h" #ifndef PLATFORM_WINDOWS #include #endif @@ -43,6 +42,7 @@ enum {ONE_BILLION=1000000000}; #ifdef USE_PORTAUDIO +#include "portaudio.h" #undef USE_PORTAUDIO // determine portaudio version by looking for a #define which is not in V18