diff options
author | Pierre Grandin <grandinp@gmail.com> | 2019-06-04 10:14:17 -0600 |
---|---|---|
committer | Pierre Grandin <grandinp@gmail.com> | 2019-06-04 10:14:17 -0600 |
commit | 92a5169423e470e4d1a5f4237cb2112266998d28 (patch) | |
tree | bee5f13203e0a0d99c8f6962c82deef9fe772b6e /navit/support/espeak/speech.h | |
parent | 5304cda121782db8e1e5e4685ae10780cce36394 (diff) | |
parent | da3e1e0c186dfd6c6566f798811a27d001a7fb1d (diff) | |
download | navit-audio.tar.gz |
Merge branch 'trunk' into audioaudio
Diffstat (limited to 'navit/support/espeak/speech.h')
-rw-r--r--[-rwxr-xr-x] | navit/support/espeak/speech.h | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/navit/support/espeak/speech.h b/navit/support/espeak/speech.h index 9673b0c8b..cb3887ec0 100755..100644 --- a/navit/support/espeak/speech.h +++ b/navit/support/espeak/speech.h @@ -17,27 +17,39 @@ * <http://www.gnu.org/licenses/>. * ***************************************************************************/ +#ifndef SPEECH_H +#define SPEECH_H #include <sys/types.h> // conditional compilation options #define INCLUDE_KLATT +//#define INCLUDE_MBROLA +#define INCLUDE_SONIC #if defined(BYTE_ORDER) && BYTE_ORDER == BIG_ENDIAN #define ARCH_BIG #endif -/* #define PLATFORM_POSIX */ +#ifdef __QNX__ +#define NEED_GETOPT +#define NO_VARIADIC_MACROS +#endif + + +#define PLATFORM_POSIX #define PATHSEP '/' // USE_PORTAUDIO or USE_PULSEAUDIO are now defined in the makefile //#define USE_PORTAUDIO //#define USE_PULSEAUDIO #define USE_NANOSLEEP +#ifndef __cdecl +#define __cdecl +#endif //#define ESPEAK_API extern "C" #ifdef LIBRARY #define USE_ASYNC -//#define USE_MBROLA_LIB #endif #ifdef _ESPEAKEDIT @@ -54,7 +66,7 @@ typedef unsigned short USHORT; typedef unsigned char UCHAR; typedef double DOUBLEX; - +typedef unsigned long long64; // use this for conversion between pointers and integers @@ -62,19 +74,13 @@ typedef struct { const char *mnem; int value; } MNEM_TAB; -int LookupMnem(MNEM_TAB *table, char *string); +int LookupMnem(MNEM_TAB *table, const char *string); #ifdef PLATFORM_WINDOWS -#define N_PATH_HOME 220 -#define ESPEAK_API -#else -#define N_PATH_HOME 150 -#ifdef __cplusplus -#define ESPEAK_API extern "C" +#define N_PATH_HOME 230 #else -#define ESPEAK_API -#endif +#define N_PATH_HOME 160 #endif extern char path_home[N_PATH_HOME]; // this is the espeak-data directory @@ -84,3 +90,4 @@ int GetFileLength(const char *filename); char *Alloc(int size); void Free(void *ptr); +#endif // SPEECH_H |