Test_Support.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006 #include "CSL_Includes.h"
00007
00008 #ifdef USE_JUCE
00009 #define USE_JUCEIO // uncomment this to use the JUCE IO
00010 #else
00011 #define USE_PAIO // uncomment this to use the PortAudio IO
00012
00013 #endif
00014
00015 #ifdef USE_JUCEIO
00016 #include "JUCEIO.h"
00017 #define IO_CLASS JUCEIO
00018 #endif
00019
00020 #ifdef USE_CAIO
00021 #include "CAIO.h"
00022 #define IO_CLASS CAIO
00023 #endif
00024
00025 #ifdef USE_PAIO
00026 #include "PAIO.h"
00027 #define IO_CLASS PAIO
00028 #endif
00029
00030
00031
00032 #ifdef USE_FILEIO // File tests
00033 #include "FileIO.h"
00034 #define IO_CLASS FileIO
00035 #endif
00036
00037 #ifndef IO_CLASS
00038 #define IO_CLASS JUCEIO // this is the new default
00039 #endif
00040
00041 using namespace csl;
00042
00043 #ifdef USE_TEST_MAIN // use the generic main() function here
00044
00045 extern void runTests();
00046
00048
00049 int main (int argc, const char * argv[]);
00050
00051 #else // not USE_TEST_MAIN = Juce test fcn prototypes
00052
00053 extern IO_CLASS * theIO;
00054
00055 #endif
00056
00057
00058
00059 void runTest(UnitGenerator & vox, double dur);
00060
00061
00062
00063 void runTest(UnitGenerator & vox);
00064
00065
00066
00067 void dumpTest(UnitGenerator & vox);