[Speex-dev] Readding Zlast info to the preprocessor
Thorvald Natvig
speex at natvig.com
Sat Sep 10 06:18:34 PDT 2005
This small patch will make st->Zlast = Zframe, to allow applications
access to an estimate of the signal-to-noise level. This used to be in
there earlier, but was removed when Zlast was no longer used to compute
Pframe.
-------------- next part --------------
Index: preprocess.c
===================================================================
--- preprocess.c (revision 10007)
+++ preprocess.c (working copy)
@@ -761,7 +761,8 @@
}
Zframe /= (freq_end-freq_start);
}
-
+ st->Zlast = Zframe;
+
Pframe = qcurve(Zframe);
/*fprintf (stderr, "%f\n", Pframe);*/
More information about the Speex-dev
mailing list