Commit Graph
281 Commits
Author SHA1 Message Date
Reece H. Dunn bb465a45d8 Move the clock_gettime2 and add_time_in_ms definitions to event.h. 2016-02-07 18:38:13 +00:00
Reece H. Dunn ca831d236a Don't call wave_close in fifo.c.
This is handled by calls to espeak_ng_Cancel/espeak_Cancel and
espeak_ng_Terminate/espeak_Terminate.
2016-02-07 18:25:30 +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 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 4a2994d1d3 Remove calls to wave_get_remaining_time.
This logic was implemented to limit the number of audio events sent
to a device, but the logic is not too relevant in practice (these
calls return 0 most of the time), and the logic is broken (e.g. when
calling Synthesize with a very long block of text).
2016-02-07 16:12:39 +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 1d91276eac wave_get_read_position is not used, so remove it 2016-02-07 13:33:48 +00:00
Reece H. Dunn 71b998b691 Remove duplicate t_wave_callback definition in wave.c. 2016-02-06 15:30:02 +00:00
Reece H. Dunn 7a4bc02cb6 Use stdlib.h instead of malloc.h. 2016-02-06 15:24:42 +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 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 a51717346c SpeakNextClause should not call WavegenOpenSound.
This function call does not affect the audio output in non-async
modes. Audio output in that case is handled within the SynthOnTimer
helper function.
2016-02-03 21:23:03 +00:00
Reece H. Dunn c09d255e38 Remove timer_on from synthesize.c as this matches the SpeakNextClause return value. 2016-02-03 21:17:14 +00:00
Reece H. Dunn a471ba02bf SynthStatus is not called, so remove it. 2016-02-03 21:13:56 +00:00
Reece H. Dunn 8df810f776 Remove paused from synthesize.c as it is now no longer used. 2016-02-03 21:07:02 +00:00
Reece H. Dunn 2eca970fc8 Remove the control 3-5 logic in SpeakNextClause as those values are not passed to the function. 2016-02-03 20:57:46 +00:00
Reece H. Dunn 211f103a69 Perform case insensitive comparisons for matching voice names. 2016-02-01 18:37:06 +00:00
Reece H. Dunn 565548fffe Fix building 'my' (Burmese) on Windows. 2016-01-31 21:51:18 +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 dc87e7b775 Use a HAVE_MKSTEMP configure check instead of PLATFORM_POSIX. 2016-01-30 10:51:24 +00:00
Reece H. Dunn 0b187e217e Use the same logic when calling sox in readclause.c as compiledata.c for portability. 2016-01-30 10:46:56 +00:00
Reece H. Dunn e8015df0f8 Remove the additional LoadVoice search heuristics.
These heuristics were designed to guess the location of the voice
files without searching the voice list. The heuristics are very
implementation dependent, and easily break when voices move around.
The voices are still found correctly, so these heuristics are
redundant.
2016-01-23 14:50:43 +00:00
Reece H. Dunn e963b54b6d Move strerror_r portability to a string.h compatibility shim. 2016-01-23 11:35:07 +00:00
Reece H. Dunn 2000c20212 Merge the error labels in pulse_open to simplify the logic. 2016-01-22 20:45:57 +00:00
Reece H. Dunn d7580eef70 Remove dead code in pulse_open(wave_pulse.c) -- o is always null when jumping to unlock_and_fail. [Coverity] 2016-01-22 20:43:10 +00:00
Reece H. Dunn 69355ed568 Fix a null pointer dereference in DoVoiceChange(synthesize.c). [Coverity] 2016-01-22 20:37:01 +00:00
Reece H. Dunn e74a0e4f53 Fix a null pointer dereference in create_espeak_pronunciation_list(espeak_command.c). [Coverity] 2016-01-22 20:31:12 +00:00
Reece H. Dunn 4ecdeefe4b Fix a null pointer dereference in LoadSpectSeq(spect.c). [Coverity] 2016-01-22 20:26:48 +00:00
Reece H. Dunn 5673065168 Fix a null pointer dereference in compile_rule(compiledict.c). [Coverity] 2016-01-22 20:22:24 +00:00
Reece H. Dunn a9adf136c6 Close stream on error paths in LoadSpectSeq(spect.c). [Coverity] 2016-01-22 20:17:08 +00:00
Reece H. Dunn 7ea2cf784d Use the error.h API in LoadEnvelope and check more return values. [Coverity] 2016-01-22 07:31:34 +00:00
Reece H. Dunn ebb052a808 Use the error.h API in LoadSoundFile and check more return values. [Coverity] 2016-01-22 07:24:30 +00:00
Reece H. Dunn 4ec98f79a8 Fix truncated fgetc return value in LoadWavefile(compiledata.c). [Coverity] 2016-01-21 20:05:47 +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 bfcdcc8bb6 Clean up the error handling logic in the espeak_command create_... APIs. 2016-01-20 23:31:59 +00:00
Reece H. Dunn 40a9a3d439 Remove logically dead code in pulse_open (success always 0 in this case). [Coverity] 2016-01-20 23:11:59 +00:00
Reece H. Dunn a6f6a337b1 Add a missing pthread_mutex_unlock call in fifo_add_commands. [Coverity] 2016-01-20 22:55:20 +00:00
Reece H. Dunn f09c83640b Fix GCC -Wnarrowing warnings. 2016-01-20 20:48:29 +00:00
Reece H. Dunn 86a9511553 Inline the calls to log in mbrowrap.c. 2016-01-20 20:39:37 +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 95c171831a Fix detecting if pulseaudio is running in audio=runtime mode. 2016-01-18 07:30:14 +00:00
Reece H. Dunn 4b61d38551 Use M_PI instead of PI. 2016-01-18 07:01:19 +00:00