| src_libespeak_ng_la_LDFLAGS = -version-info $(SHARED_VERSION) -lpthread -lm | src_libespeak_ng_la_LDFLAGS = -version-info $(SHARED_VERSION) -lpthread -lm | ||||
| src_libespeak_ng_la_CFLAGS = -Isrc/include/espeak-ng \ | src_libespeak_ng_la_CFLAGS = -Isrc/include/espeak-ng \ | ||||
| -fPIC -fvisibility=hidden -D LIBRARY -D _BSD_SOURCE -D _POSIX_C_SOURCE=200112L \ | |||||
| -fPIC -fvisibility=hidden -D _BSD_SOURCE -D _POSIX_C_SOURCE=200112L \ | |||||
| -pedantic -fno-exceptions -D PATH_ESPEAK_DATA=\"$(DATADIR)\" | -pedantic -fno-exceptions -D PATH_ESPEAK_DATA=\"$(DATADIR)\" | ||||
| src_libespeak_ng_la_SOURCES = \ | src_libespeak_ng_la_SOURCES = \ | ||||
| src/libespeak-ng/compiledata.c \ | src/libespeak-ng/compiledata.c \ | 
| } | } | ||||
| out_end2 = &outbuffer[pa_size]; // top of data needed for the portaudio buffer | out_end2 = &outbuffer[pa_size]; // top of data needed for the portaudio buffer | ||||
| #ifdef LIBRARY | |||||
| event_list_ix = 0; | event_list_ix = 0; | ||||
| #endif | |||||
| result = WavegenFill(1); | result = WavegenFill(1); | ||||
| p[-pa_size] = p[0]; | p[-pa_size] = p[0]; | ||||
| out_ptr -= pa_size; | out_ptr -= pa_size; | ||||
| #ifdef LIBRARY | |||||
| count_samples += framesPerBuffer; | count_samples += framesPerBuffer; | ||||
| if (synth_callback) { | if (synth_callback) { | ||||
| // synchronous-playback mode, allow the calling process to abort the speech | // synchronous-playback mode, allow the calling process to abort the speech | ||||
| result = 1; | result = 1; | ||||
| } | } | ||||
| } | } | ||||
| #endif | |||||
| #ifdef ARCH_BIG | #ifdef ARCH_BIG | ||||
| // swap the order of bytes in each sound sample in the portaudio buffer | // swap the order of bytes in each sound sample in the portaudio buffer |