-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit de54174
Showing
14 changed files
with
1,106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Builds/ | ||
JuceLibraryCode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<JUCERPROJECT id="NTe0XB0ij" name="Light Host" projectType="guiapp" version="1.0.0" | ||
juceLinkage="amalg_multi" juceFolder="../../../juce" buildVST="1" | ||
buildRTAS="0" buildAU="1" vstFolderMac="~/SDKs/vstsdk2.4" vstFolderPC="c:\SDKs\vstsdk2.4" | ||
rtasFolderMac="~/SDKs/PT_80_SDK" rtasFolderPC="c:\SDKs\PT_80_SDK" | ||
pluginName="Juce Project" pluginDesc="Juce Project" pluginManufacturer="yourcompany" | ||
pluginManufacturerCode="abcd" pluginCode="Abcd" pluginChannelConfigs="{1, 1}, {2, 2}" | ||
pluginIsSynth="0" pluginWantsMidiIn="0" pluginProducesMidiOut="0" | ||
pluginSilenceInIsSilenceOut="0" pluginTailLength="0" pluginEditorRequiresKeys="0" | ||
pluginAUExportPrefix="JuceProjectAU" pluginAUViewClass="JuceProjectAU_V1" | ||
pluginRTASCategory="" bundleIdentifier="com.rolandoislas.lighthost" | ||
jucerVersion="4.1.0" companyName="Rolando Islas" includeBinaryInAppConfig="1" | ||
companyWebsite="https://www.rolandoislas.com" companyEmail="[email protected]"> | ||
<EXPORTFORMATS> | ||
<XCODE_MAC targetFolder="Builds/MacOSX" vstFolder="" rtasFolder="~/SDKs/PT_80_SDK" | ||
objCExtraSuffix="M73TRi" vst3Folder="" smallIcon="pmwje3" bigIcon="kxxp8K"> | ||
<CONFIGURATIONS> | ||
<CONFIGURATION name="Debug" isDebug="1" optimisation="1" targetName="Light Host" | ||
osxSDK="default" osxCompatibility="default" osxArchitecture="default" | ||
headerPath=""/> | ||
<CONFIGURATION name="Release" isDebug="0" optimisation="2" targetName="Light Host" | ||
osxSDK="default" osxCompatibility="10.7 SDK" osxArchitecture="default" | ||
headerPath="" cppLanguageStandard="c++11" cppLibType="libc++"/> | ||
</CONFIGURATIONS> | ||
<MODULEPATHS> | ||
<MODULEPATH id="juce_video" path="../../../../Applications/Projucer/modules"/> | ||
<MODULEPATH id="juce_opengl" path="../../../../Applications/Projucer/modules"/> | ||
<MODULEPATH id="juce_gui_extra" path="../../../../Applications/Projucer/modules"/> | ||
<MODULEPATH id="juce_gui_basics" path="../../../../Applications/Projucer/modules"/> | ||
<MODULEPATH id="juce_graphics" path="../../../../Applications/Projucer/modules"/> | ||
<MODULEPATH id="juce_events" path="../../../../Applications/Projucer/modules"/> | ||
<MODULEPATH id="juce_data_structures" path="../../../../Applications/Projucer/modules"/> | ||
<MODULEPATH id="juce_cryptography" path="../../../../Applications/Projucer/modules"/> | ||
<MODULEPATH id="juce_core" path="../../../../Applications/Projucer/modules"/> | ||
<MODULEPATH id="juce_audio_utils" path="../../../../Applications/Projucer/modules"/> | ||
<MODULEPATH id="juce_audio_processors" path="../../../../Applications/Projucer/modules"/> | ||
<MODULEPATH id="juce_audio_formats" path="../../../../Applications/Projucer/modules"/> | ||
<MODULEPATH id="juce_audio_devices" path="../../../../Applications/Projucer/modules"/> | ||
<MODULEPATH id="juce_audio_basics" path="../../../../Applications/Projucer/modules"/> | ||
</MODULEPATHS> | ||
</XCODE_MAC> | ||
</EXPORTFORMATS> | ||
<MAINGROUP id="YdWL7hi7p" name="Light Host"> | ||
<GROUP id="{1B23ABDC-E658-7C9C-3584-0C960D2AE323}" name="Source"> | ||
<FILE id="2b09bSUt" name="PluginWindow.cpp" compile="1" resource="0" | ||
file="Source/PluginWindow.cpp"/> | ||
<FILE id="sj8Yug8cu" name="PluginWindow.h" compile="0" resource="0" | ||
file="Source/PluginWindow.h"/> | ||
<FILE id="nehnGjkrX" name="HostStartup.cpp" compile="1" resource="0" | ||
file="Source/HostStartup.cpp"/> | ||
<FILE id="SO1QjM" name="IconMenu.cpp" compile="1" resource="0" file="Source/IconMenu.cpp"/> | ||
<FILE id="pzKV1s" name="IconMenu.hpp" compile="0" resource="0" file="Source/IconMenu.hpp"/> | ||
</GROUP> | ||
<GROUP id="{B6DF5A1E-D458-C20A-CD4E-C679E4461593}" name="Resources"> | ||
<FILE id="kxxp8K" name="icon.png" compile="0" resource="1" file="Resources/icon.png"/> | ||
<FILE id="pmwje3" name="menu_icon.png" compile="0" resource="1" file="Resources/menu_icon.png"/> | ||
<FILE id="k0f4yI" name="menu_icon_white.png" compile="0" resource="1" | ||
file="Resources/menu_icon_white.png"/> | ||
</GROUP> | ||
</MAINGROUP> | ||
<JUCEOPTIONS JUCE_WASAPI="enabled" JUCE_DIRECTSOUND="enabled" JUCE_ALSA="enabled" | ||
JUCE_QUICKTIME="disabled" JUCE_USE_FLAC="disabled" JUCE_USE_OGGVORBIS="disabled" | ||
JUCE_USE_CDBURNER="disabled" JUCE_USE_CDREADER="disabled" JUCE_USE_CAMERA="disabled" | ||
JUCE_PLUGINHOST_VST="enabled" JUCE_PLUGINHOST_AU="enabled" JUCE_WEB_BROWSER="disabled" | ||
JUCE_PLUGINHOST_VST3="enabled"/> | ||
<MODULES> | ||
<MODULE id="juce_audio_basics" showAllCode="1"/> | ||
<MODULE id="juce_audio_devices" showAllCode="1"/> | ||
<MODULE id="juce_audio_formats" showAllCode="1"/> | ||
<MODULE id="juce_audio_processors" showAllCode="1"/> | ||
<MODULE id="juce_audio_utils" showAllCode="1"/> | ||
<MODULE id="juce_core" showAllCode="1"/> | ||
<MODULE id="juce_cryptography" showAllCode="1"/> | ||
<MODULE id="juce_data_structures" showAllCode="1"/> | ||
<MODULE id="juce_events" showAllCode="1"/> | ||
<MODULE id="juce_graphics" showAllCode="1"/> | ||
<MODULE id="juce_gui_basics" showAllCode="1"/> | ||
<MODULE id="juce_gui_extra" showAllCode="1"/> | ||
<MODULE id="juce_opengl" showAllCode="1"/> | ||
<MODULE id="juce_video" showAllCode="1"/> | ||
</MODULES> | ||
<LIVE_SETTINGS> | ||
<OSX headerPath=""/> | ||
</LIVE_SETTINGS> | ||
</JUCERPROJECT> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#include "../JuceLibraryCode/JuceHeader.h" | ||
#include "IconMenu.hpp" | ||
|
||
#if ! (JUCE_PLUGINHOST_VST || JUCE_PLUGINHOST_VST3 || JUCE_PLUGINHOST_AU) | ||
#error "If you're building the audio plugin host, you probably want to enable VST and/or AU support" | ||
#endif | ||
|
||
class PluginHostApp : public JUCEApplication | ||
{ | ||
public: | ||
PluginHostApp() {} | ||
|
||
void initialise (const String&) override | ||
{ | ||
PropertiesFile::Options options; | ||
options.applicationName = getApplicationName(); | ||
options.filenameSuffix = "settings"; | ||
options.osxLibrarySubFolder = "Preferences"; | ||
|
||
appProperties = new ApplicationProperties(); | ||
appProperties->setStorageParameters (options); | ||
|
||
LookAndFeel::setDefaultLookAndFeel (&lookAndFeel); | ||
|
||
mainWindow = new IconMenu(); | ||
Process::setDockIconVisible(false); | ||
|
||
File fileToOpen; | ||
|
||
for (int i = 0; i < getCommandLineParameterArray().size(); ++i) | ||
{ | ||
fileToOpen = File::getCurrentWorkingDirectory().getChildFile (getCommandLineParameterArray()[i]); | ||
|
||
if (fileToOpen.existsAsFile()) | ||
break; | ||
} | ||
} | ||
|
||
void shutdown() override | ||
{ | ||
mainWindow = nullptr; | ||
appProperties = nullptr; | ||
LookAndFeel::setDefaultLookAndFeel (nullptr); | ||
} | ||
|
||
void systemRequestedQuit() override | ||
{ | ||
JUCEApplicationBase::quit(); | ||
} | ||
|
||
const String getApplicationName() override { return "Light Host"; } | ||
const String getApplicationVersion() override { return ProjectInfo::versionString; } | ||
bool moreThanOneInstanceAllowed() override { return false; } | ||
|
||
ApplicationCommandManager commandManager; | ||
ScopedPointer<ApplicationProperties> appProperties; | ||
LookAndFeel_V3 lookAndFeel; | ||
|
||
private: | ||
ScopedPointer<IconMenu> mainWindow; | ||
}; | ||
|
||
static PluginHostApp& getApp() { return *dynamic_cast<PluginHostApp*>(JUCEApplication::getInstance()); } | ||
ApplicationCommandManager& getCommandManager() { return getApp().commandManager; } | ||
ApplicationProperties& getAppProperties() { return *getApp().appProperties; } | ||
|
||
START_JUCE_APPLICATION (PluginHostApp) |
Oops, something went wrong.