Just Intonation  Version 1.3.0 (18)
Explore scale-independent dynamically adapting tuning in just intonation
config.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright 2016-2017 Karolin Stange, Christoph Wick, and Haye Hinrichsen
3  *
4  * This file is part of JustIntonation.
5  *
6  * JustIntonation is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by the
8  * Free Software Foundation, either version 3 of the License, or (at your
9  * option) any later version.
10  *
11  * JustIntonation is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14  * for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with JustIntonation. If not, see http://www.gnu.org/licenses/.
18  *****************************************************************************/
19 
20 #include <QtGlobal>
21 
22 //=============================================================================
23 // Compile-time configuration of the application
24 //=============================================================================
25 
26 #ifndef CONFIG_H
27 #define CONFIG_H
28 
29 //------------------------- Application name etc ------------------------------
30 
31 #define INT_APPLICATIONNAME "Just Intonation"
32 #define INT_ORGANIZATIONNAME "University of Wuerzburg"
33 #define INT_ORGANIZATIONDOMAIN "just-intonation.org"
34 #define INT_APPLICATIONNAME_LOWERCASE "justintonation"
35 
36 //----------------------------- Version numbers -------------------------------
37 
38 #define INT_APPLICATION_VERSION "1.3.0"
39 #define INT_ROLLING_APPLICATION_VERSION 18
40 #define INT_FILEFORMAT_ROLLING_VERSION 2
41 
42 //------------------------------ Internet urls --------------------------------
43 
44 #define INT_SAMPLES_REPOSITORY "http://samples.just-intonation.org"
45 
46 //-------------------------- Startupsound resource ----------------------------
47 
48 #if defined(Q_OS_LINUX)
49 #define INT_STARTUPSOUND ":/audio/startupsound.ogg"
50 #else
51 #define INT_STARTUPSOUND ":/audio/startupsound.mp3"
52 #endif
53 
54 //----------------------------- Midi examples ---------------------------------
55 
56 #define INT_NUMBER_OF_EXAMPLES 12
57 
58 //----------------------- Platform-specific settings --------------------------
59 
60 // INT_BUFFERSIZE is the default buffer size of the internal Qt-Audio buffer
61 // Use 0 if no setting
62 // INT_MAXFRAMES is the maximal size
63 
64 #if defined(Q_OS_ANDROID)
65 // Android seems to fix the internal buffer size to 4096 which is far too much
66 #define INT_BUFFERSIZE 256
67 #define INT_PACKETSIZE 256
68 
69 // Stable Linux settins (empirical)
70 #elif defined(Q_OS_LINUX)
71 // USB home: 32768 128 oder 0 128
72 #define INT_BUFFERSIZE 0
73 #define INT_PACKETSIZE 2048
74 
75 // Best Windows settings (empirical)
76 #elif defined(Q_OS_WIN)
77 #define INT_BUFFERSIZE 16384
78 #define INT_PACKETSIZE 1024
79 
80 #elif defined(Q_OS_DARWIN)
81 #define INT_BUFFERSIZE 0
82 #define INT_PACKETSIZE 256
83 
84 #endif
85 
86 //-------------------------------- RunGuard -----------------------------------
87 
88 #if (!defined(Q_OS_ANDROID) && !defined(Q_OS_IOS))
89 #define INT_INCLUDE_RUNGUARD
90 #endif
91 
92 
93 //=============================================================================
94 // Doxygen comments describing the groups of classes
95 //=============================================================================
96 
97 //-----------------------------------------------------------------------------
98 // SYSTEM:
103 //-----------------------------------------------------------------------------
104 // INSTRUMENT:
110 //-----------------------------------------------------------------------------
111 // SOUND-GENERATING
114 //-----------------------------------------------------------------------------
115 // IMPORTER
118 //-----------------------------------------------------------------------------
119 
120 
121 #endif // CONFIG_H