Commit Graph
52 Commits
Author SHA1 Message Date
Reece H. Dunn be93c8b3e7 Remove calls to wave_is_busy.
Removing these calls do not impact on the behaviour of the program
and simplify the wave.h API.
2016-02-07 18:11:27 +00:00
Reece H. Dunn 94c5efe0b3 Remove calls to wave_set_callback_is_output_enabled.
These calls are used to pre-emptively exit when writing audio
data. This is also handled within dispatch_audio. The difference
is that this callback could allow espeak to cancel quicker. In
practice it does not make much difference.
2016-02-07 17:40:09 +00:00
Reece H. Dunn 2a628e982f Remove calls to wave_get_write_position.
This call was used to update the written sample count used by
wave_get_remaining_time. As that function has been removed, this
code is no longer needed.
2016-02-07 17:24:28 +00:00
Reece H. Dunn f138558fe7 Fix the USE_ASYNC and wave_* API usage logic. 2016-02-07 15:27:35 +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 c9c0aca34f Use the wave_* APIs for non-async audio. 2016-02-06 10:31:47 +00:00
Reece H. Dunn f07dc419a6 Fix audio output in espeak-ng when USE_ASYNC is not defined. 2016-02-03 22:34:26 +00:00
Reece H. Dunn c4a7ffba33 Inline the call to SynthOnTimer. 2016-02-03 21:35:52 +00:00
Reece H. Dunn 7a50cbcdcc MSI: set the Path registry value to the install directory 2016-01-30 18:51:27 +00:00
Reece H. Dunn 02b7359b6a Fix a potential null pointer dereference in espeak_ng_SynthesizeMark. [Coverity] 2016-01-21 07:19:11 +00:00
Reece H. Dunn 6a4fc79078 Fix a potential null pointer dereference in espeak_ng_Synthesize. [Coverity] 2016-01-21 07:17:24 +00:00
Reece H. Dunn bbd981efb8 Use malloc/strdup instead of Alloc. 2016-01-18 20:34:59 +00:00
Reece H. Dunn 325014da42 Use free instead of Free as free checks for NULL. 2016-01-18 20:23:51 +00:00
Reece H. Dunn c0d79709c4 Fix Windows includes (don't rely on speech.h). 2016-01-16 18:19:39 +00:00
Reece H. Dunn 7d900fb8b0 Remove includes from internal header files. 2016-01-16 18:05:17 +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 9a03414e99 Guard calls to the synth_callback function, as it might be NULL. 2016-01-16 11:47:27 +00:00
Reece H. Dunn 3d55519f27 Correct the usage of USE_ASYNC when async is disabled. 2016-01-16 10:27:18 +00:00
Reece H. Dunn 9c5820f72a Create an initial compatibility shim for unistd.h. 2016-01-15 07:22:46 +00:00
Reece H. Dunn 54f8c672e5 Fix the realloc usage of event_list in espeak_ng_InitializeOutput(speech.c) [msvc /analyze] 2016-01-12 21:46:08 +00:00
Reece H. Dunn 5de96146e1 Fix the realloc usage of outbuf in espeak_ng_InitializeOutput(speech.c) [msvc /analyze] 2016-01-12 21:46:08 +00:00
Reece H. Dunn 0ca520a4ec Revert the gcc sign conversion warning fixes.
This reverts commits 0cc0300328 to
38d15f8f90.

The 0cc03003 commit breaks MBROLA voice support. As such, there
may be other breakages in those commits.
2016-01-11 07:03:00 +00:00
Reece H. Dunn 0cc0300328 Fix gcc sign conversion warnings in espeak-ng.c. 2016-01-10 11:38:05 +00:00
Reece H. Dunn 11101806ce Support building espeak-ng.exe with Visual C++. 2016-01-09 13:32:16 +00:00
Reece H. Dunn c1f1efc78b Passing NULL to event_declare will set err to EINVAL, so don't process the event in that case. 2016-01-07 23:06:56 +00:00
Reece H. Dunn 01756bf910 Remove a dead assignment in Synthesize(speech.c) [clang scan-build] 2016-01-06 21:21:10 +00:00
Reece H. Dunn 72db232ec3 Move include/espeak{-ng => }/speak_lib.h. 2016-01-04 19:45:23 +00:00
Reece H. Dunn 013e282d1a Use the error context API in espeak_ng_Initialize. 2016-01-04 10:51:19 +00:00
Reece H. Dunn 8c0d4a993d Move the error formatting code to error.c. 2016-01-03 16:48:05 +00:00
Reece H. Dunn 619fc6424d Make LoadDataFile return an espeak_ng_STATUS code. 2016-01-03 14:53:11 +00:00
Reece H. Dunn f8b3764bef Create espeak-ng APIs for formatting espeak_ng_STATUS codes. 2016-01-03 14:16:17 +00:00
Reece H. Dunn 6aeb5a26f0 Replace the remaining espeak_ERROR code usage with espeak_ng_STATUS. 2016-01-02 19:24:39 +00:00
Reece H. Dunn 3343bb45b6 Make the event API use espeak_ng_STATUS. 2016-01-02 19:17:19 +00:00
Reece H. Dunn cec20ab48a Move callback API implementations back to speech.c. 2016-01-02 18:30:36 +00:00
Reece H. Dunn d5fdd0eb92 Create an espeak-ng version of espeak_Terminate. 2016-01-02 18:24:53 +00:00
Reece H. Dunn 4ba60623e8 Create an espeak-ng version of espeak_Synchronize. 2016-01-02 18:20:22 +00:00
Reece H. Dunn 079712ab79 Create an espeak-ng version of espeak_Cancel. 2016-01-02 18:10:35 +00:00
Reece H. Dunn 50120034ad Create an espeak-ng version of espeak_SetPunctuationList. 2016-01-02 18:06:44 +00:00
Reece H. Dunn 93898d7960 Create an espeak-ng version of espeak_SetParameter. 2016-01-02 17:32:32 +00:00
Reece H. Dunn 95b1fdc4b9 Create an espeak-ng version of espeak_Synth_Mark. 2016-01-02 17:17:52 +00:00
Reece H. Dunn 06cbd9d096 Create an espeak-ng version of espeak_Synth. 2016-01-02 17:06:01 +00:00
Reece H. Dunn 21d29154ce Propagate the Synthesize status return code through sync_espeak_(Key|Char). 2016-01-02 16:20:37 +00:00
Reece H. Dunn bf6f6f093f Make Synthesize return an espeak_ng_STATUS code. 2016-01-02 15:55:28 +00:00
Reece H. Dunn 5e42051a30 Move the espeak callback APIs to espeak_api.c. 2016-01-02 15:01:30 +00:00
Reece H. Dunn 7d8d91698f Remove the f_logespeak logging code. 2016-01-02 14:55:32 +00:00
Reece H. Dunn e294760385 Return the status from Synthesize directly. 2016-01-02 14:47:36 +00:00
Reece H. Dunn b843d2a415 Remove the unused size parameter in the sync_espeak_Synth commands. 2016-01-02 14:44:01 +00:00
Reece H. Dunn 7569d1c4c3 Create an espeak-ng version of espeak_Key. 2016-01-02 14:33:32 +00:00
Reece H. Dunn 4ca39ab26c Create an espeak-ng version of espeak_Char. 2016-01-02 14:23:36 +00:00
Reece H. Dunn 8b32702627 Move the espeak_CompileDictionary implementation to espeak_api.c. 2016-01-02 13:57:00 +00:00