paulstretch_cpp

PaulStretch
Log | Files | Refs | LICENSE

globals.h (1016B)


      1 /*
      2   Copyright (C) 2006-2011 Nasca Octavian Paul
      3   Author: Nasca Octavian Paul
      4 
      5   This program is free software; you can redistribute it and/or modify
      6   it under the terms of version 2 of the GNU General Public License 
      7   as published by the Free Software Foundation.
      8 
      9   This program is distributed in the hope that it will be useful,
     10   but WITHOUT ANY WARRANTY; without even the implied warranty of
     11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     12   GNU General Public License (version 2) for more details.
     13 
     14   You should have received a copy of the GNU General Public License (version 2)
     15   along with this program; if not, write to the Free Software Foundation,
     16   Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
     17 */
     18 #ifndef GLOBALS_H
     19 #define GLOBALS_H
     20 
     21 #define REALTYPE float
     22 
     23 #ifndef NULL
     24 #define NULL 0
     25 #endif
     26 
     27 void sleep(int ms);
     28 
     29 #define ZERO(data,size) {char *data_=(char *) data;for (int i=0;i<size;i++) data_[i]=0;};
     30 
     31 enum FILE_TYPE{
     32     FILE_WAV,FILE_VORBIS,FILE_MP3
     33 };
     34 
     35 
     36 #endif
     37