Ramped SdkVersion and fixed musikwin example.

This commit is contained in:
casey langen 2017-02-04 01:50:34 -08:00
parent e4c1acca84
commit eaa60205cc
2 changed files with 5 additions and 1 deletions

View File

@ -78,5 +78,5 @@ namespace musik {
ChannelSideRight = 256
};
static const int SdkVersion = 2;
static const int SdkVersion = 3;
} } }

View File

@ -43,6 +43,7 @@ processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#include <core/library/LibraryFactory.h>
#include <core/audio/PlaybackService.h>
#include <core/support/Preferences.h>
#include <core/audio/Visualizer.h>
#include <glue/audio/MasterTransport.h>
@ -60,6 +61,8 @@ using namespace musik::win;
using namespace win32cpp;
int APIENTRY _tWinMain(HINSTANCE instance, HINSTANCE previousInstance, LPTSTR commandLine, int showCommand) {
Preferences::LoadPluginPreferences();
Application::Initialize(instance, previousInstance, commandLine, showCommand);
Application& app = Application::Instance();
@ -78,6 +81,7 @@ int APIENTRY _tWinMain(HINSTANCE instance, HINSTANCE previousInstance, LPTSTR co
app.Run(mainWindow);
Preferences::SavePluginPreferences();
LibraryFactory::Instance().Shutdown();
return 0;