From 24607b1cc8000d4d95128e96662240dbce385358 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 5 Oct 2008 14:47:52 -0500 Subject: [PATCH] made the synth flush character a constant for readability --- softsynth.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/softsynth.c b/softsynth.c index f42dc08..d27113a 100644 --- a/softsynth.c +++ b/softsynth.c @@ -28,6 +28,9 @@ /* max buffer size */ const size_t maxBufferSize = 1025; +/* synth flush character */ +const int synthFlushChar = 0x18; + static int softFD = 0; static int process_command(struct synth_t *s, char *buf, int start) @@ -165,7 +168,7 @@ void main_loop(struct synth_t *s) *(buf + length) = 0; /* *(buf+length) is not 0x18 */ for (i = length - 1; i >= 0; i--) - if (*(buf + i) == 0x18) { /* synth flush char. */ + if (*(buf + i) == synthFlushChar) { queue_clear(); stop_speech(); j = length - i;