diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2002-03-02 20:15:00 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2002-03-02 20:15:00 +0000 |
commit | 2f7d0766d909f572acaf71b2c18080619367ec83 (patch) | |
tree | 83a2efb31ec119dc4ba59dc60ed6a063533a5abf /gst/monoscope/monoscope.c | |
parent | e7d82558ece5540d7c4d834ba2560cb8be510f99 (diff) |
what sort of compiler allowed this anomaly to pass ??? please fix indentation too ;)
Original commit message from CVS:
what sort of compiler allowed this anomaly to pass ???
please fix indentation too ;)
Diffstat (limited to 'gst/monoscope/monoscope.c')
-rw-r--r-- | gst/monoscope/monoscope.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/monoscope/monoscope.c b/gst/monoscope/monoscope.c index bddaa6df..33c3e98d 100644 --- a/gst/monoscope/monoscope.c +++ b/gst/monoscope/monoscope.c @@ -56,11 +56,6 @@ guint32 * monoscope_update (gint16 data [2][512]) /* Really, we want samples evenly spread over the available data. * Just taking a continuous chunk will do for now, though. */ int i; - for (i = 0; i < CONVOLVE_BIG; i++) { - /* Average the two channels. */ - newEq[i] = (((int) data[0][i]) + (int) data[1][i]) >> 1; - } - int foo; int bar; int h; @@ -71,6 +66,11 @@ guint32 * monoscope_update (gint16 data [2][512]) int val; int max = 1; short * thisEq; + for (i = 0; i < CONVOLVE_BIG; i++) { + /* Average the two channels. */ + newEq[i] = (((int) data[0][i]) + (int) data[1][i]) >> 1; + } + memcpy (copyEq, newEq, sizeof (short) * CONVOLVE_BIG); thisEq = copyEq; #if 1 |