summaryrefslogtreecommitdiff
path: root/gst/spectrum
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2010-08-11 12:45:53 +0300
committerStefan Kost <ensonic@users.sf.net>2010-09-06 09:53:00 +0300
commit34bdec3d5807898752af79976664e8df4b0dd76c (patch)
treee82c93dfd9eba0cec67510cc26f7cc54573cd5bb /gst/spectrum
parent738e092d4e91703a2b0ed3ff3c0f27199224574e (diff)
spectrum: more comments
Diffstat (limited to 'gst/spectrum')
-rw-r--r--gst/spectrum/gstspectrum.c4
-rw-r--r--gst/spectrum/gstspectrum.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/gst/spectrum/gstspectrum.c b/gst/spectrum/gstspectrum.c
index 587cf8e37..824cbb571 100644
--- a/gst/spectrum/gstspectrum.c
+++ b/gst/spectrum/gstspectrum.c
@@ -513,8 +513,8 @@ gst_spectrum_transform_ip (GstBaseTransform * trans, GstBuffer * buffer)
gst_spectrum_reset_state (spectrum);
}
- /* If we don't have a FFT context yet get one and
- * allocate memory for everything
+ /* If we don't have a FFT context yet (or it was reset due to parameter
+ * changes) get one and allocate memory for everything
*/
if (spectrum->fft_ctx == NULL) {
spectrum->input = g_new0 (gfloat, nfft);
diff --git a/gst/spectrum/gstspectrum.h b/gst/spectrum/gstspectrum.h
index e676fd2dd..d172f6cee 100644
--- a/gst/spectrum/gstspectrum.h
+++ b/gst/spectrum/gstspectrum.h
@@ -59,8 +59,8 @@ struct _GstSpectrum
guint input_pos;
gfloat *input_tmp;
GstFFTF32Complex *freqdata;
- gfloat *spect_magnitude;
- gfloat *spect_phase;
+ gfloat *spect_magnitude; /* accumulated mangitude and phase */
+ gfloat *spect_phase; /* will be scaled by num_fft before sending */
GstFFTF32 *fft_ctx;
guint64 error_per_interval;