Commit Graph
50 Commits
Author SHA1 Message Date
Juho Hiltunen f00ff91fe4 headers: add new file wavegen.h with declarations of functions in wavegen.c 2018-03-11 11:27:56 +02:00
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.
2018-03-09 21:08:38 +02:00
Juho Hiltunen 738492100a make all headers (almost) self-contained by using include guards and #include statements within headers 2018-03-09 21:08:15 +02:00
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.
2017-12-09 17:34:05 +02:00
Reece H. Dunn 90d53e145f Move the klatt methods from synthesize.h to klatt.h. 2017-10-25 07:12:45 +01:00
Reece H. Dunn 74f9f5e34b wavegen.c: Fix -Wmissing-prototypes warnings. 2017-10-10 21:37:46 +01:00
Reece H. Dunn 6ab1314843 Move outbuf_size to where it is actually used. 2017-05-21 10:02:27 +01:00
Reece H. Dunn 006bd842c3 Fix indentation in wavegen.c. 2017-01-14 19:16:11 +00:00
Valdis Vitolins 640f0d8160 Typo fixes 2017-01-13 21:19:59 +02:00
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.
2016-08-28 10:57:10 +01:00
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.
2016-03-01 07:32:02 +00:00
Reece H. Dunn 674d55e605 Remove support for pa_device in the config file (now have a device command-line option). 2016-02-07 18:16:27 +00:00
Reece H. Dunn eebb079718 Remove the Wave(Init|Open|Close)Sound functions as these are no longer used. 2016-02-06 10:51:40 +00:00
Reece H. Dunn 4cde8b6d13 option_quiet is no longer used (always set to 0), so remove it 2016-02-06 10:45:32 +00:00
Reece H. Dunn 914e64aba8 option_waveout is no longer used in libespeak-ng, so remove it 2016-02-06 10:41:43 +00:00
Reece H. Dunn 4b61d38551 Use M_PI instead of PI. 2016-01-18 07:01:19 +00:00
Reece H. Dunn 96c43f3eb2 Clean up the include files to make them consistent. 2016-01-16 17:54:39 +00:00
Reece H. Dunn 8e7f4e7e3d Fix the realloc usage of outbuffer in WaveCallback(wavegen.c) 2016-01-12 21:46:08 +00:00
Reece H. Dunn 9c7179189b Add a stdint.h compatibility shim. 2016-01-09 13:09:50 +00:00
Reece H. Dunn 0966892fef Remove a dead assignment in PeaksToHarmspect(wavegen.c) [clang scan-build] 2016-01-06 20:15:53 +00:00
Reece H. Dunn 72db232ec3 Move include/espeak{-ng => }/speak_lib.h. 2016-01-04 19:45:23 +00:00
Reece H. Dunn c2811d074e Make LoadPhData return an espeak_ng_STATUS code. 2016-01-01 13:17:11 +00:00
Reece H. Dunn 53aac7f3a5 Fix clang -Wconditional-uninitialized warnings. 2015-12-30 16:37:01 +00:00
Reece H. Dunn 80914cc40e Fix clang -Wunused-macros warnings. 2015-12-30 16:13:29 +00:00
Reece H. Dunn fe31f299ca Fix clang -Wunreachable-code-return warnings. 2015-12-30 15:58:25 +00:00
Reece H. Dunn b11d540718 Fix GCC -Wunused-parameter warnings. 2015-12-30 15:01:31 +00:00
Reece H. Dunn 8771b1c29c The modn parameter of SetSynth_Klatt is not used, so remove it. 2015-12-30 09:18:22 +00:00
Reece H. Dunn 8091938430 The fill_zeros parameter of WavegenFill is not used, so remove it. 2015-12-30 09:06:19 +00:00
Reece H. Dunn 522e7c4d51 Revert commit 14a2fb39cf
This commit has been reported to cause distortions in phoneme
pitches and speeds.
2015-12-28 17:54:17 +00:00
Reece H. Dunn 5d295bdd30 Merge remote-tracking branch 'nyqvist/master'
Conflicts:
	src/libespeak-ng/compiledict.c
	src/libespeak-ng/readclause.c
	src/libespeak-ng/speak_lib.c
	src/libespeak-ng/voices.c
	src/libespeak-ng/wave_sada.c
	src/libespeak-ng/wavegen.c
2015-12-28 13:14:46 +00:00
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.
2015-12-28 12:46:14 +00:00
Reece H. Dunn 7874411c4d Always include the #ifdef LIBRARY code. 2015-12-28 11:29:16 +00:00
Reece H. Dunn cc66180705 Remove the remaining SPECT_EDITOR code from espeakedit. 2015-12-28 11:18:48 +00:00
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
2015-12-28 12:05:17 +01:00
Reece H. Dunn 3e99752d0c Check and fix source code formatting. 2015-12-27 22:34:53 +00:00
Reece H. Dunn f0c2c4cca2 Remove extra newlines from the files to provide consistent spacing. 2015-12-23 11:32:03 +00:00
Reece H. Dunn d345d74f64 Remove braces around single-line if/while/for/etc. and related cleanup. 2015-12-22 20:40:10 +00:00
Reece H. Dunn 9a837c8182 Remove parentheses around return statements. 2015-12-22 16:24:01 +00:00
Reece H. Dunn 12e0bb122b Reformat the code using the uncrustify program. 2015-12-22 15:06:50 +00:00
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.
2015-12-21 14:46:18 +00:00
Reece H. Dunn 85c87e83a9 Remove the LOG_FRAMES code which was only used in espeakedit. 2015-12-20 19:49:20 +00:00
Reece H. Dunn bf64b4ec3b The pk_shape_x and pk_shape_y variables are not used, so remove them. 2015-12-19 16:13:35 +00:00
Reece H. Dunn 66c2831bed Use intptr_t from stdint.h instead of a custom long64 typedef. 2015-12-18 21:41:28 +00:00
Reece H. Dunn c71b24a9a5 Use a consistent license notice in the source files. 2015-12-18 07:06:29 +00:00
Reece H. Dunn cbe8695fcb Remove the * box around the file headers. 2015-12-17 23:45:36 +00:00
Reece H. Dunn 36be9ac13f Use the default uncrustify config (with indentation changes) to reformat the code. 2015-12-17 07:40:24 +00:00
Reece H. Dunn 5e0050419d Remove comments that deliniate the start and end of functions, etc.. 2015-12-15 22:26:02 +00:00
Reece H. Dunn 08821f262f Remove commented out code. 2015-12-14 23:13:56 +00:00
Reece H. Dunn 186916afb6 Remove the code within '#ifdef deleted' statements. 2015-12-12 09:46:03 +00:00
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.
2015-12-09 23:33:00 +00:00