Debian Codegraph @

src/csoundoptions.h

raw symbols SCIP
1 /*
2 Copyright (C) 2010 Andres Cabrera
3 [email protected]
4
5 This file is part of CsoundQt.
6
7 CsoundQt is free software; you can redistribute it
8 and/or modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 CsoundQt is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with Csound; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20 02111-1307 USA
21 */
22
23 #ifndef CSOUNDOPTIONS_H
24 #define CSOUNDOPTIONS_H
25
26 #include <QString>
27
28 class ConfigLists;
29
30 class CsoundOptions
31 {
32 public:
33 CsoundOptions(ConfigLists *configlists);
34
35 QString generateCmdLineFlags();
36 QStringList generateCmdLineFlagsList();
37 int generateCmdLine(char **argv);
38
39 void setJackNameSize(int size);
40
41 // this is used to identify a document indenpendently of its filename (which might
42 // be a temporary name)
43 QString docName;
44 QString fileName1;
45 QString fileName2;
46 bool rt; //FIXME make sure this is set!
47
48 bool enableFLTK;
49 int bufferSize;
50 bool bufferSizeActive;
51 int HwBufferSize;
52 bool HwBufferSizeActive;
53 bool dither;
54 bool sampleAccurateFlag;
55 bool realtimeFlag;
56 bool newParser;
57 bool multicore;
58 int numThreads;
59 QString additionalFlags;
60 bool additionalFlagsActive;
61
62 bool fileUseOptions;
63 bool fileOverrideOptions;
64 bool fileAskFilename;
65 bool filePlayFinished;
66 int fileFileType;
67 int fileSampleFormat;
68 bool fileInputFilenameActive;
69 QString fileInputFilename;
70 bool fileOutputFilenameActive;
71 QString fileOutputFilename;
72
73 int sampleFormat;
74
75 bool rtUseOptions;
76 bool rtOverrideOptions;
77 QString rtAudioModule;
78 QString rtInputDevice;
79 QString rtOutputDevice;
80 QString rtJackName;
81 QString rtMidiModule;
82 QString rtMidiInputDevice;
83 QString rtMidiOutputDevice;
84 bool useSystemSamplerate;
85 bool checkSyntaxOnly;
86 bool checkSyntaxBeforeRun;
87 int samplerate;
88 bool overrideNumChannels;
89 int numChannels;
90 int numInputChannels;
91
92 bool useLimiter;
93 double limitValue;
94
95 bool useCsoundMidi;
96 bool simultaneousRun; // Allow running various instances (tabs) simultaneously.
97
98 QString csdocdir;
99 QString opcodedir;
100 bool opcodedirActive;
101 QString opcodedir64;
102 bool opcodedir64Active;
103 QString opcode6dir64;
104 bool opcode6dir64Active;
105 QString sadir;
106 bool sadirActive;
107 QString ssdir;
108 bool ssdirActive;
109 QString sfdir;
110 bool sfdirActive;
111 QString incdir;
112 bool incdirActive;
113 QString rawWave;
114 bool rawWaveActive;
115
116 private:
117 int m_jackNameSize;
118 ConfigLists *m_configlists;
119 };
120
121 #endif // CSOUNDOPTIONS_H