Juho Hiltunen
f00ff91fe4
headers: add new file wavegen.h with declarations of functions in wavegen.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
738492100a
make all headers (almost) self-contained by using include guards and #include statements within headers
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
90d53e145f
Move the klatt methods from synthesize.h to klatt.h.
7 years ago
Reece H. Dunn
74f9f5e34b
wavegen.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
6ab1314843
Move outbuf_size to where it is actually used.
8 years ago
Reece H. Dunn
006bd842c3
Fix indentation in wavegen.c.
8 years ago
Valdis Vitolins
640f0d8160
Typo fixes
8 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
371216006f
Protect against wvoice being NULL in wavegen.c.
This can occur in cases where the voice is not found, or
espeak_ng_Initialize is called more than once.
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
eebb079718
Remove the Wave(Init|Open|Close)Sound functions as these are no longer used.
9 years ago
Reece H. Dunn
4cde8b6d13
option_quiet is no longer used (always set to 0), so remove it
9 years ago
Reece H. Dunn
914e64aba8
option_waveout is no longer used in libespeak-ng, so remove it
9 years ago
Reece H. Dunn
4b61d38551
Use M_PI instead of PI.
9 years ago
Reece H. Dunn
96c43f3eb2
Clean up the include files to make them consistent.
9 years ago
Reece H. Dunn
8e7f4e7e3d
Fix the realloc usage of outbuffer in WaveCallback(wavegen.c)
9 years ago
Reece H. Dunn
9c7179189b
Add a stdint.h compatibility shim.
9 years ago
Reece H. Dunn
0966892fef
Remove a dead assignment in PeaksToHarmspect(wavegen.c) [clang scan-build]
9 years ago
Reece H. Dunn
72db232ec3
Move include/espeak{-ng => }/speak_lib.h.
9 years ago
Reece H. Dunn
c2811d074e
Make LoadPhData return an espeak_ng_STATUS code.
9 years ago
Reece H. Dunn
53aac7f3a5
Fix clang -Wconditional-uninitialized warnings.
9 years ago
Reece H. Dunn
80914cc40e
Fix clang -Wunused-macros warnings.
9 years ago
Reece H. Dunn
fe31f299ca
Fix clang -Wunreachable-code-return warnings.
9 years ago
Reece H. Dunn
b11d540718
Fix GCC -Wunused-parameter warnings.
9 years ago
Reece H. Dunn
8771b1c29c
The modn parameter of SetSynth_Klatt is not used, so remove it.
9 years ago
Reece H. Dunn
8091938430
The fill_zeros parameter of WavegenFill is not used, so remove it.
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
Reece H. Dunn
5bbc0d3743
Remove the PLATFORM_RISCOS code.
This is from the old espeak RiscOS port that has been removed.
If/when the espeak-ng program is ported to RiscOS, this will be
done in a different, more maintainable way.
9 years ago
Reece H. Dunn
7874411c4d
Always include the #ifdef LIBRARY code.
9 years ago
Reece H. Dunn
cc66180705
Remove the remaining SPECT_EDITOR code from espeakedit.
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
Reece H. Dunn
f0c2c4cca2
Remove extra newlines from the files to provide consistent spacing.
9 years ago
Reece H. Dunn
d345d74f64
Remove braces around single-line if/while/for/etc. and related cleanup.
9 years ago
Reece H. Dunn
9a837c8182
Remove parentheses around return statements.
9 years ago
Reece H. Dunn
12e0bb122b
Reformat the code using the uncrustify program.
9 years ago
Reece H. Dunn
f10b2ccb85
Use the system's sonic files.
This allows newer versions of sonic to be used and to keep
up-to-date with bug fixes provided by the system.
9 years ago
Reece H. Dunn
85c87e83a9
Remove the LOG_FRAMES code which was only used in espeakedit.
9 years ago
Reece H. Dunn
bf64b4ec3b
The pk_shape_x and pk_shape_y variables are not used, so remove them.
9 years ago
Reece H. Dunn
66c2831bed
Use intptr_t from stdint.h instead of a custom long64 typedef.
9 years ago
Reece H. Dunn
c71b24a9a5
Use a consistent license notice in the source files.
9 years ago
Reece H. Dunn
cbe8695fcb
Remove the * box around the file headers.
9 years ago
Reece H. Dunn
36be9ac13f
Use the default uncrustify config (with indentation changes) to reformat the code.
9 years ago
Reece H. Dunn
5e0050419d
Remove comments that deliniate the start and end of functions, etc..
9 years ago
Reece H. Dunn
08821f262f
Remove commented out code.
9 years ago
Reece H. Dunn
186916afb6
Remove the code within '#ifdef deleted' statements.
9 years ago
Reece H. Dunn
f7dfc38dd7
Use the C compiler to build C files; restructuring.
This moves the libespeak source (*.cpp) files to src/libespeak-ng
and renames the C files (libespeak, espeak, speak) so they have
a .c file extension.
9 years ago
Reece H. Dunn
5b3cf74f21
Remove StdAfx.h
StdAfx.h is only needed for Microsoft Visual Studio C++ projects
that specify the "use pre-compiled headers" setting.
9 years ago