X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=c%2Fgoertzel%2Fgoertzel.c;h=85637ae43652097beb365abc5f943cdc8dc8a904;hb=21e17c18fddc3d3c133244463f29a88d13722568;hp=d13a874d9612379d94ca4e07c7de72da16ea7294;hpb=c6b7ca1fb9e8b8387cd763af8b2d90a24b51f45d;p=mirrors%2FPrograms.git diff --git a/c/goertzel/goertzel.c b/c/goertzel/goertzel.c index d13a874..85637ae 100644 --- a/c/goertzel/goertzel.c +++ b/c/goertzel/goertzel.c @@ -33,6 +33,7 @@ float goertzel_mag(int numSamples,float TARGET_FREQUENCY,int SAMPLING_RATE, floa imag = (q1 * sine) / scalingFactor; magnitude = sqrtf(real*real + imag*imag); + //phase = atan(imag/real) return magnitude; }