Browse Source

fix syntax for pointer incrementation

previous syntax was a quick fix when changing from globals to pointers.
master
Juho Hiltunen 7 years ago
parent
commit
ace9bc087a
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/libespeak-ng/ssml.c

+ 3
- 3
src/libespeak-ng/ssml.c View File



sp = &param_stack[*n_param_stack]; sp = &param_stack[*n_param_stack];
if (*n_param_stack < (N_PARAM_STACK-1)) if (*n_param_stack < (N_PARAM_STACK-1))
*n_param_stack = *n_param_stack + 1;
(*n_param_stack)++;


sp->type = tag_type; sp->type = tag_type;
for (ix = 0; ix < N_SPEECH_PARAM; ix++) for (ix = 0; ix < N_SPEECH_PARAM; ix++)
case SSML_SPEAK + SSML_CLOSE: case SSML_SPEAK + SSML_CLOSE:
// unwind stack until the previous <voice> or <speak> tag // unwind stack until the previous <voice> or <speak> tag
while ((*n_ssml_stack > 1) && (ssml_stack[*n_ssml_stack-1].tag_type != SSML_SPEAK)) while ((*n_ssml_stack > 1) && (ssml_stack[*n_ssml_stack-1].tag_type != SSML_SPEAK))
*n_ssml_stack = *n_ssml_stack -1;
(*n_ssml_stack)--;
return CLAUSE_PERIOD + GetVoiceAttributes(px, tag_type, ssml_sp, ssml_stack, *n_ssml_stack, current_voice_id, base_voice, base_voice_variant_name); return CLAUSE_PERIOD + GetVoiceAttributes(px, tag_type, ssml_sp, ssml_stack, *n_ssml_stack, current_voice_id, base_voice, base_voice_variant_name);
case SSML_VOICE + SSML_CLOSE: case SSML_VOICE + SSML_CLOSE:
// unwind stack until the previous <voice> or <speak> tag // unwind stack until the previous <voice> or <speak> tag
while ((*n_ssml_stack > 1) && (ssml_stack[*n_ssml_stack-1].tag_type != SSML_VOICE)) while ((*n_ssml_stack > 1) && (ssml_stack[*n_ssml_stack-1].tag_type != SSML_VOICE))
*n_ssml_stack = *n_ssml_stack -1;
(*n_ssml_stack)--;


terminator = 0; // ?? Sentence intonation, but no pause ?? terminator = 0; // ?? Sentence intonation, but no pause ??
return terminator + GetVoiceAttributes(px, tag_type, ssml_sp, ssml_stack, *n_ssml_stack, current_voice_id, base_voice, base_voice_variant_name); return terminator + GetVoiceAttributes(px, tag_type, ssml_sp, ssml_stack, *n_ssml_stack, current_voice_id, base_voice, base_voice_variant_name);

Loading…
Cancel
Save