mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-14 09:37:47 +00:00
Always include the #ifdef LIBRARY code.
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ lib_LTLIBRARIES += src/libespeak-ng.la
|
||||
|
||||
src_libespeak_ng_la_LDFLAGS = -version-info $(SHARED_VERSION) -lpthread -lm
|
||||
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)\"
|
||||
src_libespeak_ng_la_SOURCES = \
|
||||
src/libespeak-ng/compiledata.c \
|
||||
|
||||
@@ -391,9 +391,7 @@ static int WaveCallback(const void *inputBuffer, void *outputBuffer,
|
||||
}
|
||||
out_end2 = &outbuffer[pa_size]; // top of data needed for the portaudio buffer
|
||||
|
||||
#ifdef LIBRARY
|
||||
event_list_ix = 0;
|
||||
#endif
|
||||
|
||||
result = WavegenFill(1);
|
||||
|
||||
@@ -411,7 +409,6 @@ static int WaveCallback(const void *inputBuffer, void *outputBuffer,
|
||||
p[-pa_size] = p[0];
|
||||
out_ptr -= pa_size;
|
||||
|
||||
#ifdef LIBRARY
|
||||
count_samples += framesPerBuffer;
|
||||
if (synth_callback) {
|
||||
// synchronous-playback mode, allow the calling process to abort the speech
|
||||
@@ -423,7 +420,6 @@ static int WaveCallback(const void *inputBuffer, void *outputBuffer,
|
||||
result = 1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef ARCH_BIG
|
||||
// swap the order of bytes in each sound sample in the portaudio buffer
|
||||
|
||||
Reference in New Issue
Block a user