7 #define convolver_depth 8
8 #define convolver_small (1 << convolver_depth)
9 #define convolver_big (2 << convolver_depth)
10 #define scope_width 256
11 #define scope_height 128
13 struct monoscope_state {
14 short copyEq[convolver_big];
15 int avgEq[convolver_small]; /* a running average of the last few. */
16 int avgMax; /* running average of max sample. */
17 guint32 display[scope_width * scope_height];
19 convolve_state *cstate;
20 guint32 colors[scope_height / 2];
23 struct monoscope_state * monoscope_init (guint32 resx, guint32 resy);
24 guint32 * monoscope_update (struct monoscope_state * stateptr, gint16 data [convolver_big]);
25 void monoscope_close (struct monoscope_state * stateptr);