fixed-point: converted the pitch gain quantisation, except for the codebook

itself
This commit is contained in:
Jean-Marc Valin 2008-03-05 11:31:57 +11:00
parent a78dc946cd
commit 92376697c6
3 changed files with 29 additions and 12 deletions

View file

@ -130,7 +130,10 @@ int main(int argc, char *argv[])
out[i] = in[i];
#endif
for (i=0;i<frame_size*channels;i++)
{
rmsd += (in[i]-out[i])*1.0*(in[i]-out[i]);
out[i] -= in[i];
}
count++;
fwrite(out, sizeof(short), (frame_size-skip)*channels, fout);
skip = 0;