From b78aa68cc5963cd719987bd09815220c82d1b234 Mon Sep 17 00:00:00 2001 From: Oliver Schinagl Date: Wed, 24 Nov 2004 15:13:54 +0000 Subject: we have added pointers to the dual buffered equalizer part of the display and a flag to lock the buffers. Also added indicator which mode we are using for equalizer updates. Created defines to go with that. Added defines to indicate what operational mode we are in. --- Graphic_Equalizer/include/eventhandler_shared.hch | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Graphic_Equalizer/include/eventhandler_shared.hch b/Graphic_Equalizer/include/eventhandler_shared.hch index 5bf9ecf..243c359 100644 --- a/Graphic_Equalizer/include/eventhandler_shared.hch +++ b/Graphic_Equalizer/include/eventhandler_shared.hch @@ -27,15 +27,29 @@ * Type definition of the shared memory to be used in various processes */ typedef struct { + unsigned 10 *equalizer_displayptr_set, *equalizer_displayptr_get; unsigned 10 active_preset; unsigned 10 volume_position; - unsigned ram 9 equalizer_position[128]; unsigned 8 mask; + unsigned 8 locked_equalizer; + unsigned 4 mode; unsigned 3 equalizer_mode; - unsigned 1 help; } events_t; +#define MODE_SKIN 0x00 +#define MODE_HELP 0x01 +#define MODE_GRAPH 0x02 + + + +#define EQUALIZERMODE_CONVEX_FULL 0x01 +#define EQUALIZERMODE_CONVEX_HALF 0x02 +#define EQUALIZERMODE_PRECISE 0x03 +#define EQUALIZERMODE_CONCAVE_HALF 0x04 +#define EQUALIZERMODE_CONCAVE_FULL 0x05 + + /* * Volume Control lookuptable. @@ -50,7 +64,7 @@ extern unsigned 5 volumecontrol_table[46]; * should be dynamically loaded. */ extern unsigned 4 equalizer_table[66]; -extern unsigned 9 equalizer_table_inv[16]; +extern unsigned 10 equalizer_table_inv[16]; -- cgit v0.12