PageRenderTime 18ms CodeModel.GetById 10ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/native/external/espeak/platforms/windows/espeakedit/src/speech.h

http://eyes-free.googlecode.com/
C++ Header | 62 lines | 24 code | 16 blank | 22 comment | 0 complexity | 10309c8e34bb4ccfc9f7ccca6d316483 MD5 | raw file
 1/***************************************************************************
 2 *   Copyright (C) 2005,2006 by Jonathan Duddington                        *
 3 *   jsd@clara.co.uk                                                       *
 4 *                                                                         *
 5 *   This program is free software; you can redistribute it and/or modify  *
 6 *   it under the terms of the GNU General Public License as published by  *
 7 *   the Free Software Foundation; either version 2 of the License, or     *
 8 *   (at your option) any later version.                                   *
 9 *                                                                         *
10 *   This program is distributed in the hope that it will be useful,       *
11 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13 *   GNU General Public License for more details.                          *
14 *                                                                         *
15 *   You should have received a copy of the GNU General Public License     *
16 *   along with this program; if not, write to the                         *
17 *   Free Software Foundation, Inc.,                                       *
18 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19 ***************************************************************************/
20
21
22#define LOG_FRAMES      // write keyframe info to src/log
23
24
25// comment this out when compiling the "speak" process
26//#define SPECT_EDITOR
27
28#include <windows.h>
29#define PLATFORM_WINDOWS
30#define __WIN32__
31#define mkdir(p1,p2) mkdir(p1)
32
33#define PATHSEP  '\\'
34#define USE_PORTAUDIO
35//#define USE_NANOSLEEP
36#define __cdecl 
37#define ESPEAK_API
38#define PATH_ESPEAK_DATA  "C:\\Program files\\espeak\\espeak-data"
39
40typedef unsigned short USHORT;
41typedef unsigned char  UCHAR;
42typedef double DOUBLEX;
43
44
45
46
47typedef struct {
48   const char *mnem;
49   int  value;
50} MNEM_TAB;
51int LookupMnem(MNEM_TAB *table, char *string);
52
53
54
55#define N_PATH_HOME  120
56extern char path_home[N_PATH_HOME];    // this is the espeak-data directory
57
58extern void strncpy0(char *to,const char *from, int size);
59int  GetFileLength(const char *filename);
60char *Alloc(int size);
61void Free(void *ptr);
62