ReaWwise

REAPER extension
Log | Files | Refs | Submodules

Standalone.cpp (1404B)


      1 /*----------------------------------------------------------------------------------------
      2 
      3 Copyright (c) 2023 AUDIOKINETIC Inc.
      4 
      5 This file is licensed to use under the license available at:
      6 https://github.com/audiokinetic/ReaWwise/blob/main/License.txt (the "License").
      7 You may not use this file except in compliance with the License.
      8 
      9 Unless required by applicable law or agreed to in writing, software distributed
     10 under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
     11 CONDITIONS OF ANY KIND, either express or implied.  See the License for the
     12 specific language governing permissions and limitations under the License.
     13 
     14 ----------------------------------------------------------------------------------------*/
     15 
     16 #include "Standalone.h"
     17 
     18 #include "StandaloneWindow.h"
     19 
     20 namespace AK::WwiseTransfer
     21 {
     22 	const juce::String Standalone::getApplicationName()
     23 	{
     24 		return JUCE_APPLICATION_NAME_STRING;
     25 	}
     26 
     27 	const juce::String Standalone::getApplicationVersion()
     28 	{
     29 		return JUCE_APPLICATION_VERSION_STRING;
     30 	}
     31 
     32 	bool Standalone::moreThanOneInstanceAllowed()
     33 	{
     34 		return false;
     35 	}
     36 
     37 	void Standalone::initialise(const juce::String& commandLine)
     38 	{
     39 		juce::ignoreUnused(commandLine);
     40 		mainWindow.reset(new StandaloneWindow());
     41 		mainWindow->setVisible(true);
     42 	}
     43 
     44 	void Standalone::shutdown()
     45 	{
     46 		mainWindow.reset();
     47 	}
     48 
     49 	START_JUCE_APPLICATION(Standalone)
     50 } // namespace AK::WwiseTransfer