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