Debian Codegraph @

external/espeak/wavegen.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2005 to 2015 by Jonathan Duddington
3 * email: [email protected]
4 * Copyright (C) 2015-2018 Reece H. Dunn
5 * Copyright (C) 2018 Juho Hiltunen
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, see: <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef ESPEAK_NG_WAVEGEN_H
22 #define ESPEAK_NG_WAVEGEN_H
23
24 #include "voice.h"
25
26 #ifdef __cplusplus
27 extern "C"
28 {
29 #endif
30
31 typedef struct {
32 int freq; // Hz<<16
33 int height; // height<<15
34 int left; // Hz<<16
35 int right; // Hz<<16
36 double freq1; // floating point versions of the above
37 double height1;
38 double left1;
39 double right1;
40 double freq_inc; // increment by this every 64 samples
41 double height_inc;
42 double left_inc;
43 double right_inc;
44 } wavegen_peaks_t;
45
46
47 int GetAmplitude(void);
48 void InitBreath(void);
49 int PeaksToHarmspect(wavegen_peaks_t *peaks,
50 int pitch,
51 int *htab,
52 int control);
53
54 void SetPitch2(voice_t *voice,
55 int pitch1,
56 int pitch2,
57 int *pitch_base,
58 int *pitch_range);
59
60 void WavegenInit(int rate,
61 int wavemult_fact);
62
63 void WavegenFini(void);
64
65
66 int WavegenFill(void);
67 void WavegenSetVoice(voice_t *v);
68 int WcmdqFree(void);
69 void WcmdqStop(void);
70 int WcmdqUsed(void);
71 void WcmdqInc(void);
72
73 #ifdef __cplusplus
74 }
75 #endif
76
77 #endif
78