Logo Search packages:      
Sourcecode: jaaa version File versions  Download package

messages.h

/*
    Copyright (C) 2004 Fons Adriaensen <fons.adriaensen@skynet.be>
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/


#ifndef __MESSAGES_H
#define __MESSAGES_H


#include <clthreads.h>


#define  EV_MESG   0
#define  EV_X11   16
#define  EV_JACK  29
#define  EV_TRIG  30
#define  EV_EXIT  31

#define  M_BUFFP  1
#define  M_INPUT  2
#define  M_FSAMP  3
#define  M_GENPAR 4


class M_buffp : public ITC_mesg
{
public:

    M_buffp (float *data, int size, int step) : 
      ITC_mesg (M_BUFFP), _data (data), _size (size), _step (step) {}

    float    *_data;
    int       _size;
    int       _step;
};

class M_input : public ITC_mesg
{
public:

    M_input (int input) :
        ITC_mesg (M_INPUT), _input (input) {}

    int       _input;
};

class M_fsamp : public ITC_mesg
{
public:

    M_fsamp (int fsamp) :
        ITC_mesg (M_FSAMP), _fsamp (fsamp) {}

    int       _fsamp;
};

class M_genpar : public ITC_mesg
{
public:

    enum { WNOISE = 16, SINE = 32 };

    M_genpar (void) :
        ITC_mesg (M_GENPAR) {}

    int         _g_bits;
    float       _a_noise;
    float       _a_sine;
    float       _f_sine;
};


#endif

Generated by  Doxygen 1.6.0   Back to index