tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_engine_utils.cpp
Go to the documentation of this file.
1 /*
2 ,--. ,--. ,--. ,--.
3 ,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
4 '-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
5 | | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
6 `---' `--' `--`--'`---'`--'`--' `---' `--' `---' `--''--' www.tracktion.com
7
8 Tracktion Engine uses a GPL or Commercial licence - see LICENCE.md for details.
9*/
10
11
12#if ! JUCE_PROJUCER_LIVE_BUILD
13
14#ifndef _MSC_VER
15 #include <fenv.h>
16
17 #if TRACKTION_ENABLE_REWIRE || TRACKTION_ENABLE_REX
18 #define Button CarbonButton
19 #define Component CarbonComponent
20 #define MemoryBlock CarbonMemoryBlock
21 #include <Carbon/Carbon.h>
22 #endif
23#endif
24
25#if TRACKTION_ENABLE_REWIRE
26 extern "C"
27 {
28 #include "ReWire/ReWireSDK/ReWireMixerAPI.c"
29 }
30#endif
31
32#undef Button
33#undef Component
34#undef MemoryBlock
35#undef check
36
37//==============================================================================
38#include "tracktion_engine.h"
39
40//==============================================================================
41#if JUCE_MAC && TRACKTION_ENABLE_REX
42extern "C" char MacGetMacFSRefForREXDLL (FSRef* fsRef)
43{
44 juce::File f ("~/Library/Application Support/Propellerhead Software/Rex/REX Shared Library.bundle");
45
46 if (! f.exists())
47 f = juce::File ("/Library/Application Support/Propellerhead Software/Rex/REX Shared Library.bundle");
48
49 #pragma clang diagnostic push
50 #pragma clang diagnostic ignored "-Wdeprecated"
51 return FSPathMakeRef ((const UInt8*) f.getFullPathName().toRawUTF8(), fsRef, 0) == noErr;
52 #pragma clang diagnostic pop
53}
54#endif
55
56#ifdef __GNUC__
57 #pragma GCC diagnostic push
58 #pragma GCC diagnostic ignored "-Wfloat-equal"
59#endif
60
61//==============================================================================
62#include "../tracktion_core/utilities/tracktion_Benchmark.h"
63
64//==============================================================================
66//#include "selection/tracktion_Selectable.test.cpp"
68//#include "selection/tracktion_SelectionManager.test.cpp"
69
84
85#ifdef __GNUC__
86 #pragma GCC diagnostic pop
87#endif
88
89#endif