CSL
6.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Test_Support.h
Go to the documentation of this file.
1
//
2
// Test_Support.h -- some support functions for the CSL testing main()s
3
// See the copyright notice and acknowledgment of authors in the file COPYRIGHT
4
//
5
6
#include "
CSL_Includes.h
"
// include all of CSL core
7
8
#ifdef USE_JUCE
9
#define USE_JUCEIO // uncomment this to use the JUCE IO
10
#else
11
#define USE_PAIO // uncomment this to use the PortAudio IO
12
// #define USE_FILEIO // uncomment this to write to AIFF files
13
#endif
14
15
#ifdef USE_JUCEIO
16
// #include "JUCEIO.h" // JUCE IO (default)
17
#define IO_CLASS IO
18
#endif
19
20
#ifdef USE_CAIO
21
#include "
CAIO.h
"
// CoreAudio IO
22
#define IO_CLASS CAIO
23
#endif
24
25
#ifdef USE_PAIO
26
#include "
PAIO.h
"
// PortAu dio IO
27
#define IO_CLASS PAIO
28
#endif
29
30
//#include "JackIO.h" // JACK IO
31
32
#ifdef USE_FILEIO // File tests
33
#include "
FileIO.h
"
// SndFile IO
34
#define IO_CLASS FileIO
35
#endif
36
37
#ifndef IO_CLASS
38
#define IO_CLASS JUCEIO // this is the new default
39
#endif
40
41
using namespace
csl
;
42
43
#ifdef USE_TEST_MAIN // use the generic main() function here
44
45
extern
void
runTests
();
// this is the list of tests to run (see the test files)
46
47
////// MAIN //////
48
49
int
main
(
int
argc,
const
char
* argv[]);
50
51
#else // not USE_TEST_MAIN = Juce test fcn prototypes
52
53
extern
IO_CLASS
*
theIO
;
54
55
#endif
56
57
// Test the given DSP graph for the given amount of time
58
59
void
runTest
(
UnitGenerator
& vox,
double
dur);
60
61
// The default is to play for 3 seconds
62
63
void
runTest
(
UnitGenerator
& vox);
64
65
// dump-test -- good for debugging
66
67
void
dumpTest
(
UnitGenerator
& vox);
csl
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
Definition:
Accessor.h:17
FileIO.h
PAIO.h
theIO
IO_CLASS * theIO
Definition:
CSL_ServerComponent.cpp:32
main
int main(int argc, char *argv[])
Definition:
MainMIDI.cpp:70
CAIO.h
IO_CLASS
#define IO_CLASS
Definition:
Test_Support.h:27
dumpTest
void dumpTest(UnitGenerator &vox)
Definition:
Test_Support.cpp:70
CSL_Includes.h
runTests
void runTests()
Definition:
Test_Effects.cpp:609
csl::UnitGenerator
forward declaration
Definition:
CSL_Core.h:241
runTest
void runTest(UnitGenerator &vox, double dur)
Definition:
Test_Support.cpp:54
Src
Tests
Test_Support.h
Generated on Fri Apr 17 2020 13:29:55 for CSL by
1.8.8