Reece H. Dunn
2e88afeaa0
Move the clock_gettime2 and add_time_in_ms implementation to event.c to avoid code duplication.
2015-12-31 16:51:46 +00:00
Reece H. Dunn
56bfebe2fd
Only include the null wave* implementation in wave.c.
2015-12-31 16:46:53 +00:00
Reece H. Dunn
d7801617f7
Always enable the wave* code irrespective of whether USE_ASYNC is defined.
2015-12-31 16:44:27 +00:00
Reece H. Dunn
fee1ca32b5
wave_sada: make use of the device parameter to wave_open
2015-12-31 15:29:13 +00:00
Reece H. Dunn
104a9de6da
Expose a device name parameter to wave_open.
2015-12-31 15:25:17 +00:00
Reece H. Dunn
843f4d0dd4
Combine wave_init and wave_open.
2015-12-31 13:47:48 +00:00
Reece H. Dunn
b11d540718
Fix GCC -Wunused-parameter warnings.
2015-12-30 15:01:31 +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
e69c936329
Remove the debugging code.
...
The debugging code is done inconsistently, mainly to trace the
event and audio output logic. This makes it harder to understand
the code flow for logic that is not enabled by default.
As such the debugging code makes the code harder to maintain.
2015-12-28 12:33:14 +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
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
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
08821f262f
Remove commented out code.
2015-12-14 23:13:56 +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