mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-22 15:44:17 +02:00
made the synth flush character a constant for readability
This commit is contained in:
parent
c8e2a35763
commit
24607b1cc8
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue