Always include the #ifdef LIBRARY code.

This commit is contained in:
Reece H. Dunn
2015-12-28 11:29:16 +00:00
parent 19f9ed629b
commit 7874411c4d
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -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 \
-4
View File
@@ -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