Browse Source

option_waveout is no longer used in libespeak-ng, so remove it

master
Reece H. Dunn 9 years ago
parent
commit
914e64aba8
3 changed files with 1 additions and 4 deletions
  1. 0
    1
      src/libespeak-ng/speech.c
  2. 0
    1
      src/libespeak-ng/translate.h
  3. 1
    2
      src/libespeak-ng/wavegen.c

+ 0
- 1
src/libespeak-ng/speech.c View File

option_device = device; option_device = device;
my_mode = output_mode; my_mode = output_mode;
my_audio = NULL; my_audio = NULL;
option_waveout = 1; // inhibit portaudio callback from wavegen.cpp
out_samplerate = 0; out_samplerate = 0;


// buflength is in mS, allocate 2 bytes per sample // buflength is in mS, allocate 2 bytes per sample

+ 0
- 1
src/libespeak-ng/translate.h View File

#define OPTION_EMPHASIZE_ALLCAPS 0x100 #define OPTION_EMPHASIZE_ALLCAPS 0x100
#define OPTION_EMPHASIZE_PENULTIMATE 0x200 #define OPTION_EMPHASIZE_PENULTIMATE 0x200
extern int option_tone_flags; extern int option_tone_flags;
extern int option_waveout;
extern int option_quiet; extern int option_quiet;
extern int option_phonemes; extern int option_phonemes;
extern int option_phoneme_events; extern int option_phoneme_events;

+ 1
- 2
src/libespeak-ng/wavegen.c View File

voice_t *wvoice; voice_t *wvoice;


FILE *f_log = NULL; FILE *f_log = NULL;
int option_waveout = 0;
static int option_harmonic1 = 10; static int option_harmonic1 = 10;
static int flutter_amp = 64; static int flutter_amp = 64;


PaError err, err2; PaError err, err2;
PaError active; PaError active;


if (option_waveout || option_quiet) {
if (option_quiet) {
// writing to WAV file, not to portaudio // writing to WAV file, not to portaudio
return 0; return 0;
} }

Loading…
Cancel
Save