pkgsrc/ham/linpsk/patches/patch-ab
wulf 144c67d563 Updated linpsk to 0.8.1:
* Improved RTTY decoder
        * Setting for slashed 0 now will be saved
        * Fixed some memory leakages
        * Removed dependancy on qwindowsstyle.h
        * Some minor bugfixes
2005-08-15 14:03:53 +00:00

13 lines
559 B
Text

$NetBSD: patch-ab,v 1.2 2005/08/15 14:03:53 wulf Exp $
--- src/cpskdemodulator.cpp.orig 2005-03-13 21:42:44.000000000 +1030
+++ src/cpskdemodulator.cpp 2005-08-15 05:35:35.000000000 +0930
@@ -551,7 +551,7 @@
{
Phase_Vector=m_BitSignal*conj(Prev_Sample);
Prev_Sample = m_BitSignal;
- Phase[j++]=Phase_Vector;
+ Phase[j++]=complex<float>(Phase_Vector);
double angle = atan2(Phase_Vector.imag(),Phase_Vector.real());
DecodeSymbol( angle);
if ( (unsigned int) m_DevAve > Threshold)