resolved compile issues due to merge

pull/8/head^2
David 2019-07-27 11:25:00 +09:30
parent 55f1db3113
commit 70aded5485
3 changed files with 10 additions and 10 deletions

View File

@ -134,7 +134,7 @@ void lpcnet_open_test_file(LPCNetState *lpcnet, char file_name[]) {
}
}
void lpcnet_synthesize(LPCNetState *lpcnet, short *output, const float *features, int N)
void lpcnet_synthesize(LPCNetState *lpcnet, short *output, const float *features, int N, int logmag)
{
static int count = 0;
int i;

View File

@ -243,7 +243,7 @@ void lpcnet_dump(LPCNET_DUMP *d, float x[], float features[])
c2_Sn[i+c2_Sn_size-c2_frame_size] = x[i];
float f0, voicing, snr; int pitch_index;
pitch_index = codec2_pitch_est(d->c2pitch, c2_Sn, &f0, &voicing), &snr;
pitch_index = codec2_pitch_est(d->c2pitch, c2_Sn, &f0, &voicing, &snr);
if (pitch_index >= 2*PITCH_MAX_PERIOD) pitch_index = 2*PITCH_MAX_PERIOD-1;
if (pitch_index < 2*PITCH_MIN_PERIOD) pitch_index = 2*PITCH_MIN_PERIOD;