WoMax Documentation

# OMax.data/OMax.data.h

    00001 /*-------------------------------------
    00002  * OMax.data.h
    00003  * Created on 17/03/09 by BenCello
    00004  *-------------------------------------*/
    00005
    00007
    00009
    00010
    00011 #include "ext.h"                                // standard Max include, always required
    00012 #include "ext_obex.h"                   // required for new style Max object
    00013 #include "jpatcher_api.h"               // required for the color
    00014 #include "jgraphics.h"                  // required for the color
    00015 #include "ext_atomic.h"                 // required for atomic operation for thread saf
    00016
    00020 typedef enum
    00021         {
    00022                 LETTERS,
    00023                 MIDI_MONO,
    00024                 SPECTRAL
    00025         } O_DataType;
    00026
    00031 typedef struct _OMax_data
    00032         {
    00033                 t_object                ob;
    00034                 t_symbol*               oname;
    00035                 O_DataType              datatype;
    00036                 int                             nbcoeffs;
    00037                 t_symbol*               dataname;
    00038                 O_data                  data;
    00039                 t_int32_atomic  wflag;
    00040                 t_int32_atomic  readcount;
    00041                 bool                    noDelete;
    00042                 void*                   out0;
    00043         } t_OMax_data;
    00044