Initial VST FilePresenter implementation

This commit is contained in:
Jack Andersen
2016-06-11 18:52:40 -10:00
parent 6f538dc19c
commit e4ae1f1f88
9 changed files with 796 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
#include "VSTBackend.hpp"
#include "audiodev/AudioVoiceEngine.hpp"
#include <Shlobj.h>
#include <logvisor/logvisor.hpp>
struct VSTVoiceEngine : boo::BaseAudioVoiceEngine
@@ -141,6 +142,13 @@ VSTBackend::VSTBackend(audioMasterCallback cb)
m_booBackend = std::make_unique<VSTVoiceEngine>();
m_voxAlloc.emplace(*m_booBackend);
m_engine.emplace(*m_voxAlloc);
WCHAR path[MAX_PATH];
if (SUCCEEDED(SHGetFolderPathW(NULL, CSIDL_APPDATA, NULL, 0, path)))
{
m_userDir = std::wstring(path) + L"\\Amuse";
CreateDirectory(m_userDir.c_str(), nullptr);
}
}
VSTBackend::~VSTBackend()