Browse Source

code cleanup: remove unused resample_count

master
Yury Popov 2 years ago
parent
commit
3de7c4cdb1
No account linked to committer's email address
1 changed files with 1 additions and 7 deletions
  1. 1
    7
      src/libespeak-ng/compiledata.c

+ 1
- 7
src/libespeak-ng/compiledata.c View File

int duplicate_references; int duplicate_references;
int count_frames; int count_frames;
int error_count; int error_count;
int resample_count;
int then_count; int then_count;
bool after_if; bool after_if;


WavegenSetVoice(voice); WavegenSetVoice(voice);


ctx->error_count = 0; ctx->error_count = 0;
ctx->resample_count = 0;
ctx->f_errors = log; ctx->f_errors = log;


strncpy0(ctx->current_fname, "phonemes", sizeof(ctx->current_fname)); strncpy0(ctx->current_fname, "phonemes", sizeof(ctx->current_fname));


WavegenFini(); WavegenFini();


if (ctx->resample_count > 0) {
fprintf(ctx->f_errors, "\n%d WAV files resampled to %d Hz\n", ctx->resample_count, samplerate_native);
fprintf(log, "Compiled phonemes: %d errors, %d files resampled to %d Hz.\n", ctx->error_count, ctx->resample_count, samplerate_native);
} else
fprintf(log, "Compiled phonemes: %d errors.\n", ctx->error_count);
fprintf(log, "Compiled phonemes: %d errors.\n", ctx->error_count);


if (ctx->f_errors != stderr && ctx->f_errors != stdout) if (ctx->f_errors != stderr && ctx->f_errors != stdout)
fclose(ctx->f_errors); fclose(ctx->f_errors);

Loading…
Cancel
Save