Showing the changes to Spectacle/Spectacle.cpp (1 of 6 files). Show all
Unified · Split
| @@ -27,6 +27,15 @@ · 26 unmodified lines | |||
| 27 | #include <stdio.h> | 27 | #include <stdio.h> |
| 28 | #include <limits.h> | 28 | #include <limits.h> |
| 29 | 29 | ||
| 30 | #ifdef WIN32 | ||
| 31 | #include <stdlib.h> | ||
| 32 | #define random() rand() | ||
| 33 | #endif | ||
| 34 | #ifndef M_PI | ||
| 35 | #define M_PI 3.14159265358979323846 | ||
| 36 | #endif | ||
| 37 | |||
| 38 | |||
| 30 | // declaration of chugin constructor | 39 | // declaration of chugin constructor |
| 31 | CK_DLL_CTOR(spectacle_ctor); | 40 | CK_DLL_CTOR(spectacle_ctor); |
| 32 | // declaration of chugin desctructor | 41 | // declaration of chugin desctructor |
| @@ -257,6 +266,7 @@ public: · 224 unmodified lines | |||
| 257 | spectdelay->set_delay_freqrange(minfreq, maxfreq); | 266 | spectdelay->set_delay_freqrange(minfreq, maxfreq); |
| 258 | spectdelay->set_freqrange(minfreq, maxfreq); | 267 | spectdelay->set_freqrange(minfreq, maxfreq); |
| 259 | } | 268 | } |
| 269 | return minfreq; | ||
| 260 | } | 270 | } |
| 261 | 271 | ||
| 262 | float getMinFreq () { return minfreq; } | 272 | float getMinFreq () { return minfreq; } |
| @@ -272,6 +282,7 @@ public: · 9 unmodified lines | |||
| 272 | spectdelay->set_delay_freqrange(minfreq, maxfreq); | 282 | spectdelay->set_delay_freqrange(minfreq, maxfreq); |
| 273 | spectdelay->set_freqrange(minfreq, maxfreq); | 283 | spectdelay->set_freqrange(minfreq, maxfreq); |
| 274 | } | 284 | } |
| 285 | return maxfreq; | ||
| 275 | } | 286 | } |
| 276 | 287 | ||
| 277 | float getMaxFreq () { return maxfreq; } | 288 | float getMaxFreq () { return maxfreq; } |