7 #define scope_width 256
8 #define scope_height 128
10 struct monoscope_state {
11 gint16 copyEq[CONVOLVE_BIG];
12 int avgEq[CONVOLVE_SMALL]; /* a running average of the last few. */
13 int avgMax; /* running average of max sample. */
14 guint32 display[(scope_width + 1) * (scope_height + 1)];
16 convolve_state *cstate;
20 struct monoscope_state * monoscope_init (guint32 resx, guint32 resy);
21 guint32 * monoscope_update (struct monoscope_state * stateptr, gint16 data [512]);
22 void monoscope_close (struct monoscope_state * stateptr);