Skip to content

Commit

Permalink
Merge branch 'master' into android
Browse files Browse the repository at this point in the history
Conflicts:
	README.md
  • Loading branch information
rhdunn committed Sep 3, 2013
2 parents 2eda3a1 + 5f8762a commit 26d1141
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -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=<path-to-sdk>
2. Build the project:

$ ./autogen.sh
Expand Down
2 changes: 1 addition & 1 deletion phsource/ph_english
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions 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 *
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/wave.cpp
Expand Up @@ -31,7 +31,6 @@
#include <sys/time.h>
#include <time.h>

#include "portaudio.h"
#ifndef PLATFORM_WINDOWS
#include <unistd.h>
#endif
Expand All @@ -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
Expand Down

0 comments on commit 26d1141

Please sign in to comment.