Test_Support.h

Go to the documentation of this file.
00001 //
00002 // Test_Support.h -- some support functions for the CSL testing main()s
00003 //  See the copyright notice and acknowledgment of authors in the file COPYRIGHT
00004 //
00005 
00006 #include "CSL_Includes.h"       // include all of CSL core
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 //  #define USE_FILEIO          // uncomment this to write to AIFF files
00013 #endif
00014 
00015 #ifdef USE_JUCEIO
00016     #include "JUCEIO.h"         // JUCE IO (default)
00017     #define IO_CLASS JUCEIO
00018 #endif
00019 
00020 #ifdef USE_CAIO
00021     #include "CAIO.h"           // CoreAudio IO
00022     #define IO_CLASS CAIO
00023 #endif
00024 
00025 #ifdef USE_PAIO
00026     #include "PAIO.h"           // PortAudio IO
00027     #define IO_CLASS PAIO
00028 #endif
00029 
00030 //#include "JackIO.h"           // JACK IO
00031 
00032 #ifdef USE_FILEIO               // File tests
00033     #include "FileIO.h"         // SndFile IO
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();         // this is the list of tests to run (see the test files)
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 // Test the given DSP graph for the given amount of time
00058 
00059 void runTest(UnitGenerator & vox, double dur);
00060 
00061 // The default is to play for 3 seconds
00062 
00063 void runTest(UnitGenerator & vox);
00064 
00065 // dump-test -- good for debugging
00066 
00067 void dumpTest(UnitGenerator & vox);

Generated on Thu Sep 17 23:14:16 2009 for CSL by  doxygen 1.5.8