Reece H. Dunn
9344dab0c3
Revert "maintainability: pass seq_len_adjust to LookupSpect() instead of using globals"
This reverts commit d08b8e43ca
.
This commit causes gcc-4.8 to output a different SHA1 hash on the
language-phonemes test for `af` (the first language tested). It
does not break on clang or on gcc-7 so may be a compiler bug,
however the Travis CI build server is using it on Ubuntu Trusty
(14.04 LTS) and so may other older OSes.
7 years ago
Juho Hiltunen
d08b8e43ca
maintainability: pass seq_len_adjust to LookupSpect() instead of using globals
7 years ago
Juho Hiltunen
d196d93ed5
maintainability: move variables to files where they are used, allowing removal of unnecessary extern declarations
7 years ago
Juho Hiltunen
1bad240de8
maintainability: remove some unused variables and unnecessary extern declarations
7 years ago
Juho Hiltunen
07160f9286
headers: add new file synthdata.h with declarations of functions in synthdata.c
7 years ago
Juho Hiltunen
706df97b20
headers: add new file readclause.h with declarations of functions in readclause.c
7 years ago
Juho Hiltunen
d1fd650219
Replace references to USHORT, DOUBLEX and UCHAR with unsigned short, double and unsigned char.
This makes the codebase more consistent. Including speech.h is not necessary anymore in some files. Includes have been removed.
7 years ago
Juho Hiltunen
78749f14f8
readability fix: use boolean instead of 0 and 1 for loop control
7 years ago
Juho Hiltunen
da287fb851
Unify terminology for stress
synthesize.h now contains the definitions STRESS_IS_... that should be used with code related to syllable stress.
Note that isBreak and other defines were renumbered so that stress definitions could have values 0-6.
Possible TODOs:
1. Unify with terms used with phonemes, i.e. keywords like isDiminished in compiledata.c and stress_type in phsource/phonemes
2. Add functionality and documentation about STRESS_IS_PRIORITY and STRESS_IS_EMPHASIZED
7 years ago
Juho Hiltunen
4f56345fb5
Use stdbool instead of int (Issue #8)
See issue #8, https://github.com/espeak-ng/espeak-ng/issues/8
There might still be some ints that could be changed to boolean.
Possible regressions in fifo.c:
int fifo_is_busy() and int fifo_is_command_enabled() used to return an int. Now they return a boolean. This might cause problems on systems where stdbool true/false is something else than 1/0.
7 years ago
Reece H. Dunn
b5c415a98d
Rename OPCODE_ to INSTN_.
7 years ago
Reece H. Dunn
6acec43043
synthesize.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
74f9f5e34b
wavegen.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
d89fa59bed
Enable and fix -Wunused-variable warnings.
8 years ago
Reece H. Dunn
921229259d
Use int to store the value from GetFileLength.
This fixes the clang warning:
comparison of unsigned expression < 0 is always false
[-Wtautological-compare]
Reported by Reef Turner <[email protected] >
8 years ago
Reece H. Dunn
9af96da469
Make the encoding.h API public.
8 years ago
Reece H. Dunn
7c16ac543c
Use the text decoder API in readclause.c.
8 years ago
Reece H. Dunn
71c010b712
Remove unused wchar.h and wctype.h includes.
8 years ago
Reece H. Dunn
df6a2228b7
Use -EISDIR instead of -2 in GetFileLength for directories.
8 years ago
Reece H. Dunn
f2bb482782
Use OPCODE for the RETURN and CONTINUE opcodes.
8 years ago
Reece H. Dunn
b937d37e93
Use the stress condition values in StressCondition.
8 years ago
Reece H. Dunn
8338cdd250
Better document the other condition checks (isDiminished, etc.).
8 years ago
Reece H. Dunn
5d2e2a2f8f
Use the place of articulation constants to specify the place-based conditions.
8 years ago
Reece H. Dunn
f0d4a98b96
Use an explicit is phoneme type constant to specify the type-based conditions.
8 years ago
Reece H. Dunn
98703c30de
Use the phflag bit offset constants to specify the phflag-based conditions.
8 years ago
Reece H. Dunn
5c96ad2359
Remove unused phoneme flags.
8 years ago
Reece H. Dunn
5600019a54
Remove unused conditional tests.
8 years ago
Reece H. Dunn
6a0ea584ea
Don't store the unused phoneme equivalence tables in the phoneme data files.
8 years ago
Reece H. Dunn
a091c20852
Remove the unused isSeqFlag1 logic checks.
8 years ago
Reece H. Dunn
f235c7cb00
Fix the version string references in '--version' and the Windows installer.
9 years ago
Ondřej Lysoněk
3817ee1e16
Moved speak_lib.h to espeak-ng directory
Moved include/espeak/speak_lib.h to include/espeak-ng/speak_lib.h and
created a symlink from the original location.
9 years ago
Reece H. Dunn
bb465a45d8
Move the clock_gettime2 and add_time_in_ms definitions to event.h.
9 years ago
Reece H. Dunn
674d55e605
Remove support for pa_device in the config file (now have a device command-line option).
9 years ago
Reece H. Dunn
bbd981efb8
Use malloc/strdup instead of Alloc.
9 years ago
Reece H. Dunn
325014da42
Use free instead of Free as free checks for NULL.
9 years ago
Reece H. Dunn
96c43f3eb2
Clean up the include files to make them consistent.
9 years ago
Reece H. Dunn
19ef13daac
i_CHANGE_PHONEME2 is not used and the code conflicts with i_ADD_LENGTH, so remove it
9 years ago
Reece H. Dunn
9c7179189b
Add a stdint.h compatibility shim.
9 years ago
Reece H. Dunn
43d1c0c066
Initialize length in LoadPhData(synthdata.c). [clang scan-build]
9 years ago
Reece H. Dunn
21cc5195d2
Remove a dead assignment in InterpretPhoneme(synthdata.c) [clang scan-build]
9 years ago
Reece H. Dunn
72db232ec3
Move include/espeak{-ng => }/speak_lib.h.
9 years ago
Reece H. Dunn
013e282d1a
Use the error context API in espeak_ng_Initialize.
9 years ago
Reece H. Dunn
7d8d91698f
Remove the f_logespeak logging code.
9 years ago
Reece H. Dunn
563e4e3769
Use ENS_ for eSpeak NG error codes, and standardize on a numbering scheme.
9 years ago
Reece H. Dunn
912a2f7e3f
Make ReadPhFile return a status/error code.
9 years ago
Reece H. Dunn
c2811d074e
Make LoadPhData return an espeak_ng_STATUS code.
9 years ago
Reece H. Dunn
9e643b5620
Fix clang -Wunreachable-code-break warnings.
9 years ago
Reece H. Dunn
522e7c4d51
Revert commit 14a2fb39cf89c8e5561f833f961d8330059daaae
This commit has been reported to cause distortions in phoneme
pitches and speeds.
9 years ago
Fredrik Nyqvist
14a2fb39cf
Declare variables at their first point of use
Also use size_t instead of int in some places
where it make sense
9 years ago
Reece H. Dunn
3e99752d0c
Check and fix source code formatting.
9 years ago