2016-06-09 21:33:26 +00:00
|
|
|
#include "VSTBackend.hpp"
|
|
|
|
#include "audiodev/AudioVoiceEngine.hpp"
|
2016-06-12 04:52:40 +00:00
|
|
|
#include <Shlobj.h>
|
2016-06-09 21:33:26 +00:00
|
|
|
#include <logvisor/logvisor.hpp>
|
|
|
|
|
2016-06-15 00:36:25 +00:00
|
|
|
#undef min
|
|
|
|
#undef max
|
|
|
|
|
2016-06-09 21:33:26 +00:00
|
|
|
struct VSTVoiceEngine : boo::BaseAudioVoiceEngine
|
|
|
|
{
|
|
|
|
std::vector<float> m_interleavedBuf;
|
|
|
|
float** m_outputData = nullptr;
|
|
|
|
size_t m_renderFrames = 0;
|
2016-06-15 00:36:25 +00:00
|
|
|
size_t m_curBufFrame = 0;
|
2016-06-09 21:33:26 +00:00
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
boo::AudioChannelSet _getAvailableSet() { return boo::AudioChannelSet::Stereo; }
|
2016-06-09 21:33:26 +00:00
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
std::vector<std::pair<std::string, std::string>> enumerateMIDIDevices() const { return {}; }
|
2016-06-09 21:33:26 +00:00
|
|
|
|
|
|
|
boo::ReceiveFunctor* m_midiReceiver = nullptr;
|
|
|
|
|
|
|
|
struct MIDIIn : public boo::IMIDIIn
|
|
|
|
{
|
2016-07-14 04:54:46 +00:00
|
|
|
MIDIIn(bool virt, boo::ReceiveFunctor&& receiver) : IMIDIIn(virt, std::move(receiver)) {}
|
2016-06-09 21:33:26 +00:00
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
std::string description() const { return "VST MIDI"; }
|
2016-06-09 21:33:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
std::unique_ptr<boo::IMIDIIn> newVirtualMIDIIn(boo::ReceiveFunctor&& receiver)
|
|
|
|
{
|
|
|
|
std::unique_ptr<boo::IMIDIIn> ret = std::make_unique<MIDIIn>(true, std::move(receiver));
|
|
|
|
m_midiReceiver = &ret->m_receiver;
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
std::unique_ptr<boo::IMIDIOut> newVirtualMIDIOut() { return {}; }
|
2016-06-09 21:33:26 +00:00
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
std::unique_ptr<boo::IMIDIInOut> newVirtualMIDIInOut(boo::ReceiveFunctor&& receiver) { return {}; }
|
2016-06-09 21:33:26 +00:00
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
std::unique_ptr<boo::IMIDIIn> newRealMIDIIn(const char* name, boo::ReceiveFunctor&& receiver) { return {}; }
|
2016-06-09 21:33:26 +00:00
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
std::unique_ptr<boo::IMIDIOut> newRealMIDIOut(const char* name) { return {}; }
|
2016-06-09 21:33:26 +00:00
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
std::unique_ptr<boo::IMIDIInOut> newRealMIDIInOut(const char* name, boo::ReceiveFunctor&& receiver) { return {}; }
|
2016-06-09 21:33:26 +00:00
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
bool useMIDILock() const { return false; }
|
2016-06-09 21:33:26 +00:00
|
|
|
|
|
|
|
VSTVoiceEngine()
|
|
|
|
{
|
2016-06-11 00:47:02 +00:00
|
|
|
m_mixInfo.m_periodFrames = 1024;
|
|
|
|
m_mixInfo.m_sampleRate = 44100.0;
|
2016-06-09 21:33:26 +00:00
|
|
|
m_mixInfo.m_sampleFormat = SOXR_FLOAT32_I;
|
|
|
|
m_mixInfo.m_bitsPerSample = 32;
|
|
|
|
_buildAudioRenderClient();
|
|
|
|
}
|
|
|
|
|
|
|
|
void _buildAudioRenderClient()
|
|
|
|
{
|
|
|
|
m_mixInfo.m_channels = _getAvailableSet();
|
|
|
|
unsigned chCount = ChannelCount(m_mixInfo.m_channels);
|
|
|
|
|
|
|
|
m_5msFrames = m_mixInfo.m_sampleRate * 5 / 1000;
|
2016-06-15 00:36:25 +00:00
|
|
|
m_curBufFrame = m_5msFrames;
|
|
|
|
m_mixInfo.m_periodFrames = m_5msFrames;
|
|
|
|
m_interleavedBuf.resize(m_5msFrames * 2);
|
2016-06-09 21:33:26 +00:00
|
|
|
|
|
|
|
boo::ChannelMap& chMapOut = m_mixInfo.m_channelMap;
|
|
|
|
chMapOut.m_channelCount = 2;
|
|
|
|
chMapOut.m_channels[0] = boo::AudioChannel::FrontLeft;
|
|
|
|
chMapOut.m_channels[1] = boo::AudioChannel::FrontRight;
|
|
|
|
|
|
|
|
while (chMapOut.m_channelCount < chCount)
|
|
|
|
chMapOut.m_channels[chMapOut.m_channelCount++] = boo::AudioChannel::Unknown;
|
|
|
|
}
|
|
|
|
|
|
|
|
void _rebuildAudioRenderClient(double sampleRate, size_t periodFrames)
|
|
|
|
{
|
|
|
|
m_mixInfo.m_periodFrames = periodFrames;
|
|
|
|
m_mixInfo.m_sampleRate = sampleRate;
|
|
|
|
_buildAudioRenderClient();
|
|
|
|
|
|
|
|
for (boo::AudioVoice* vox : m_activeVoices)
|
|
|
|
vox->_resetSampleRate(vox->m_sampleRateIn);
|
|
|
|
for (boo::AudioSubmix* smx : m_activeSubmixes)
|
|
|
|
smx->_resetOutputSampleRate();
|
|
|
|
}
|
|
|
|
|
|
|
|
void pumpAndMixVoices()
|
|
|
|
{
|
2016-07-14 04:54:46 +00:00
|
|
|
for (size_t f = 0; f < m_renderFrames;)
|
2016-06-09 21:33:26 +00:00
|
|
|
{
|
2016-06-15 00:36:25 +00:00
|
|
|
if (m_curBufFrame == m_5msFrames)
|
|
|
|
{
|
|
|
|
_pumpAndMixVoices(m_5msFrames, m_interleavedBuf.data());
|
|
|
|
m_curBufFrame = 0;
|
2016-06-15 03:51:56 +00:00
|
|
|
}
|
2016-06-15 00:36:25 +00:00
|
|
|
|
2016-06-15 03:51:56 +00:00
|
|
|
size_t remRenderFrames = std::min(m_renderFrames - f, m_5msFrames - m_curBufFrame);
|
|
|
|
if (remRenderFrames)
|
|
|
|
{
|
2016-07-14 04:54:46 +00:00
|
|
|
for (size_t i = 0; i < 2; ++i)
|
2016-06-15 00:36:25 +00:00
|
|
|
{
|
|
|
|
float* bufOut = m_outputData[i];
|
2016-07-14 04:54:46 +00:00
|
|
|
for (size_t lf = 0; lf < remRenderFrames; ++lf)
|
|
|
|
bufOut[f + lf] = m_interleavedBuf[(m_curBufFrame + lf) * 2 + i];
|
2016-06-15 00:36:25 +00:00
|
|
|
}
|
2016-06-15 03:51:56 +00:00
|
|
|
m_curBufFrame += remRenderFrames;
|
2016-06-15 00:36:25 +00:00
|
|
|
f += remRenderFrames;
|
|
|
|
}
|
2016-06-09 21:33:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
double getCurrentSampleRate() const { return m_mixInfo.m_sampleRate; }
|
2016-06-09 21:33:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
namespace amuse
|
|
|
|
{
|
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
#define kBackendID CCONST('a', 'm', 'u', 's')
|
2016-06-09 21:33:26 +00:00
|
|
|
|
|
|
|
static logvisor::Module Log("amuse::AudioUnitBackend");
|
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
VSTBackend::VSTBackend(audioMasterCallback cb) : AudioEffectX(cb, 0, 0), m_filePresenter(*this), m_editor(*this)
|
2016-06-09 21:33:26 +00:00
|
|
|
{
|
2016-06-11 00:47:02 +00:00
|
|
|
isSynth();
|
2016-06-09 21:33:26 +00:00
|
|
|
setUniqueID(kBackendID);
|
|
|
|
setNumInputs(0);
|
|
|
|
setNumOutputs(2);
|
|
|
|
setEditor(&m_editor);
|
2016-06-11 06:40:23 +00:00
|
|
|
sizeWindow(600, 420);
|
2016-06-14 08:04:37 +00:00
|
|
|
programsAreChunks();
|
2016-06-09 21:33:26 +00:00
|
|
|
|
|
|
|
m_booBackend = std::make_unique<VSTVoiceEngine>();
|
|
|
|
m_voxAlloc.emplace(*m_booBackend);
|
|
|
|
m_engine.emplace(*m_voxAlloc);
|
2016-06-12 04:52:40 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
2016-06-13 05:47:07 +00:00
|
|
|
|
|
|
|
m_filePresenter.update();
|
2016-06-09 21:33:26 +00:00
|
|
|
}
|
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
VSTBackend::~VSTBackend() { editor = nullptr; }
|
2016-06-11 00:47:02 +00:00
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
AEffEditor* VSTBackend::getEditor() { return &m_editor; }
|
2016-06-09 21:33:26 +00:00
|
|
|
|
|
|
|
VstInt32 VSTBackend::processEvents(VstEvents* events)
|
|
|
|
{
|
2016-06-15 00:36:25 +00:00
|
|
|
std::unique_lock<std::mutex> lk(m_lock);
|
2016-06-09 21:33:26 +00:00
|
|
|
VSTVoiceEngine& engine = static_cast<VSTVoiceEngine&>(*m_booBackend);
|
|
|
|
|
2016-06-11 00:47:02 +00:00
|
|
|
/* Handle group load request */
|
2016-06-15 00:36:25 +00:00
|
|
|
if (m_curGroup != m_reqGroup)
|
2016-06-11 00:47:02 +00:00
|
|
|
{
|
2016-06-15 00:36:25 +00:00
|
|
|
m_curGroup = m_reqGroup;
|
|
|
|
if (m_curSeq)
|
|
|
|
m_curSeq->kill();
|
|
|
|
m_curSeq = m_engine->seqPlay(m_reqGroup, -1, nullptr);
|
2016-06-16 22:18:17 +00:00
|
|
|
m_editor.reselectPage();
|
2016-06-11 00:47:02 +00:00
|
|
|
}
|
|
|
|
|
2016-06-09 21:33:26 +00:00
|
|
|
if (engine.m_midiReceiver)
|
|
|
|
{
|
2016-07-14 04:54:46 +00:00
|
|
|
for (VstInt32 i = 0; i < events->numEvents; ++i)
|
2016-06-09 21:33:26 +00:00
|
|
|
{
|
|
|
|
VstMidiEvent* evt = reinterpret_cast<VstMidiEvent*>(events->events[i]);
|
|
|
|
if (evt->type == kVstMidiType)
|
|
|
|
{
|
2016-06-16 22:18:17 +00:00
|
|
|
if (m_routeChannel != -1)
|
|
|
|
{
|
|
|
|
evt->midiData[0] &= ~0xf;
|
|
|
|
evt->midiData[0] |= m_routeChannel & 0xf;
|
|
|
|
}
|
2016-07-14 04:54:46 +00:00
|
|
|
(*engine.m_midiReceiver)(
|
|
|
|
std::vector<uint8_t>(std::cbegin(evt->midiData), std::cbegin(evt->midiData) + evt->byteSize),
|
|
|
|
(m_curFrame + evt->deltaFrames) / sampleRate);
|
2016-06-09 21:33:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
void VSTBackend::processReplacing(float**, float** outputs, VstInt32 sampleFrames)
|
|
|
|
{
|
2016-06-15 00:36:25 +00:00
|
|
|
std::unique_lock<std::mutex> lk(m_lock);
|
2016-06-09 21:33:26 +00:00
|
|
|
VSTVoiceEngine& engine = static_cast<VSTVoiceEngine&>(*m_booBackend);
|
|
|
|
|
|
|
|
/* Output buffers */
|
|
|
|
engine.m_renderFrames = sampleFrames;
|
|
|
|
engine.m_outputData = outputs;
|
|
|
|
m_engine->pumpEngine();
|
|
|
|
|
|
|
|
m_curFrame += sampleFrames;
|
|
|
|
}
|
|
|
|
|
|
|
|
VstInt32 VSTBackend::canDo(char* text)
|
|
|
|
{
|
|
|
|
VstInt32 returnCode = 0;
|
|
|
|
|
|
|
|
if (!strcmp(text, "receiveVstEvents"))
|
|
|
|
returnCode = 1;
|
|
|
|
else if (!strcmp(text, "receiveVstMidiEvent"))
|
|
|
|
returnCode = 1;
|
|
|
|
|
|
|
|
return returnCode;
|
|
|
|
}
|
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
VstPlugCategory VSTBackend::getPlugCategory() { return kPlugCategSynth; }
|
2016-06-09 21:33:26 +00:00
|
|
|
|
2016-06-11 00:47:02 +00:00
|
|
|
bool VSTBackend::getEffectName(char* text)
|
|
|
|
{
|
|
|
|
strcpy(text, "Amuse");
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-06-09 21:33:26 +00:00
|
|
|
bool VSTBackend::getProductString(char* text)
|
|
|
|
{
|
|
|
|
strcpy(text, "Amuse");
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool VSTBackend::getVendorString(char* text)
|
|
|
|
{
|
|
|
|
strcpy(text, "AxioDL");
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-06-11 00:47:02 +00:00
|
|
|
bool VSTBackend::getProgramNameIndexed(VstInt32 category, VstInt32 index, char* text)
|
|
|
|
{
|
|
|
|
strcpy(text, "Sampler");
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-06-09 21:33:26 +00:00
|
|
|
bool VSTBackend::getOutputProperties(VstInt32 index, VstPinProperties* properties)
|
|
|
|
{
|
|
|
|
bool returnCode = false;
|
|
|
|
if (index == 0)
|
|
|
|
{
|
|
|
|
strcpy(properties->label, "Amuse Out");
|
|
|
|
properties->flags = kVstPinIsStereo | kVstPinIsActive;
|
2016-06-11 00:47:02 +00:00
|
|
|
properties->arrangementType = kSpeakerArrStereo;
|
2016-06-09 21:33:26 +00:00
|
|
|
returnCode = true;
|
|
|
|
}
|
|
|
|
return returnCode;
|
|
|
|
}
|
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
VstInt32 VSTBackend::getNumMidiInputChannels() { return 1; }
|
2016-06-09 21:33:26 +00:00
|
|
|
|
|
|
|
void VSTBackend::setSampleRate(float sampleRate)
|
|
|
|
{
|
|
|
|
AudioEffectX::setSampleRate(sampleRate);
|
|
|
|
VSTVoiceEngine& engine = static_cast<VSTVoiceEngine&>(*m_booBackend);
|
|
|
|
engine._rebuildAudioRenderClient(sampleRate, engine.mixInfo().m_periodFrames);
|
|
|
|
}
|
|
|
|
|
|
|
|
void VSTBackend::setBlockSize(VstInt32 blockSize)
|
|
|
|
{
|
|
|
|
AudioEffectX::setBlockSize(blockSize);
|
|
|
|
VSTVoiceEngine& engine = static_cast<VSTVoiceEngine&>(*m_booBackend);
|
|
|
|
engine._rebuildAudioRenderClient(engine.mixInfo().m_sampleRate, blockSize);
|
|
|
|
}
|
|
|
|
|
2016-06-15 00:36:25 +00:00
|
|
|
void VSTBackend::loadGroupFile(int collectionIdx, int fileIdx)
|
2016-06-14 01:54:24 +00:00
|
|
|
{
|
2016-06-15 00:36:25 +00:00
|
|
|
std::unique_lock<std::mutex> lk(m_lock);
|
|
|
|
|
2016-06-14 01:54:24 +00:00
|
|
|
if (m_curSeq)
|
|
|
|
{
|
|
|
|
m_curSeq->kill();
|
|
|
|
m_curSeq.reset();
|
2016-06-15 00:36:25 +00:00
|
|
|
m_curGroup = -1;
|
|
|
|
m_reqGroup = -1;
|
2016-06-14 01:54:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (collectionIdx < m_filePresenter.m_iteratorVec.size())
|
|
|
|
{
|
|
|
|
AudioGroupFilePresenter::CollectionIterator& it = m_filePresenter.m_iteratorVec[collectionIdx];
|
|
|
|
if (fileIdx < it->second->m_iteratorVec.size())
|
|
|
|
{
|
|
|
|
AudioGroupCollection::GroupIterator& git = it->second->m_iteratorVec[fileIdx];
|
|
|
|
if (m_curData)
|
|
|
|
m_curData->removeFromEngine(*m_engine);
|
|
|
|
git->second->addToEngine(*m_engine);
|
|
|
|
m_curData = git->second.get();
|
2016-06-15 00:36:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-06-14 01:54:24 +00:00
|
|
|
|
2016-06-15 00:36:25 +00:00
|
|
|
void VSTBackend::setGroup(int groupIdx, bool immediate)
|
|
|
|
{
|
|
|
|
std::unique_lock<std::mutex> lk(m_lock);
|
|
|
|
|
|
|
|
if (!m_curData)
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (groupIdx < m_curData->m_groupTokens.size())
|
|
|
|
{
|
|
|
|
const AudioGroupDataCollection::GroupToken& groupTok = m_curData->m_groupTokens[groupIdx];
|
|
|
|
m_reqGroup = groupTok.m_groupId;
|
|
|
|
if (immediate)
|
|
|
|
{
|
|
|
|
if (m_curSeq)
|
|
|
|
m_curSeq->kill();
|
|
|
|
m_curSeq = m_engine->seqPlay(groupTok.m_groupId, -1, nullptr);
|
2016-06-14 01:54:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-16 22:18:17 +00:00
|
|
|
void VSTBackend::_setNormalProgram(int programNo)
|
2016-06-14 01:54:24 +00:00
|
|
|
{
|
|
|
|
if (!m_curSeq)
|
|
|
|
return;
|
|
|
|
m_curSeq->setChanProgram(0, programNo);
|
2016-06-16 22:18:17 +00:00
|
|
|
m_routeChannel = 0;
|
2016-06-14 01:54:24 +00:00
|
|
|
}
|
|
|
|
|
2016-06-16 22:18:17 +00:00
|
|
|
void VSTBackend::setNormalProgram(int programNo)
|
2016-06-14 01:54:24 +00:00
|
|
|
{
|
2016-06-15 00:36:25 +00:00
|
|
|
std::unique_lock<std::mutex> lk(m_lock);
|
2016-06-16 22:18:17 +00:00
|
|
|
_setNormalProgram(programNo);
|
|
|
|
}
|
2016-06-15 00:36:25 +00:00
|
|
|
|
2016-06-16 22:18:17 +00:00
|
|
|
void VSTBackend::_setDrumProgram(int programNo)
|
|
|
|
{
|
2016-06-14 01:54:24 +00:00
|
|
|
if (!m_curSeq)
|
|
|
|
return;
|
|
|
|
m_curSeq->setChanProgram(9, programNo);
|
2016-06-16 22:18:17 +00:00
|
|
|
m_routeChannel = 9;
|
|
|
|
}
|
|
|
|
|
|
|
|
void VSTBackend::setDrumProgram(int programNo)
|
|
|
|
{
|
|
|
|
std::unique_lock<std::mutex> lk(m_lock);
|
|
|
|
_setDrumProgram(programNo);
|
2016-06-14 01:54:24 +00:00
|
|
|
}
|
|
|
|
|
2016-06-14 08:04:37 +00:00
|
|
|
VstInt32 VSTBackend::getChunk(void** data, bool)
|
|
|
|
{
|
|
|
|
size_t allocSz = 14;
|
|
|
|
if (m_curData)
|
|
|
|
allocSz += (m_curData->m_path.size() - m_userDir.size() - 1) * 2;
|
|
|
|
|
|
|
|
uint8_t* buf = new uint8_t[allocSz];
|
|
|
|
if (m_curData)
|
|
|
|
memmove(buf, m_curData->m_path.data() + m_userDir.size() + 1, allocSz - 12);
|
|
|
|
else
|
|
|
|
*reinterpret_cast<wchar_t*>(buf) = L'\0';
|
|
|
|
uint32_t* intVals = reinterpret_cast<uint32_t*>(buf + allocSz - 12);
|
2016-06-16 22:18:17 +00:00
|
|
|
intVals[0] = 0;
|
2016-06-14 08:04:37 +00:00
|
|
|
intVals[1] = m_editor.m_selGroupIdx;
|
|
|
|
intVals[2] = m_editor.m_selPageIdx;
|
|
|
|
*data = buf;
|
|
|
|
return allocSz;
|
|
|
|
}
|
|
|
|
|
|
|
|
VstInt32 VSTBackend::setChunk(void* data, VstInt32 byteSize, bool)
|
|
|
|
{
|
|
|
|
if (byteSize < 14)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
wchar_t* path = reinterpret_cast<wchar_t*>(data);
|
|
|
|
uint32_t* intVals = reinterpret_cast<uint32_t*>(path + wcslen(path) + 1);
|
|
|
|
std::wstring targetPath = m_userDir + L'\\' + path;
|
|
|
|
uint32_t groupIdx = intVals[1];
|
|
|
|
uint32_t pageIdx = intVals[2];
|
|
|
|
|
|
|
|
size_t colIdx = 0;
|
|
|
|
for (auto& collection : m_filePresenter.m_audioGroupCollections)
|
|
|
|
{
|
|
|
|
size_t fileIdx = 0;
|
|
|
|
for (auto& file : collection.second->m_groups)
|
|
|
|
{
|
|
|
|
if (!file.second->m_path.compare(targetPath))
|
|
|
|
{
|
|
|
|
m_editor.selectCollection(LPARAM(0x80000000 | (colIdx << 16) | fileIdx));
|
|
|
|
m_editor.selectGroup(groupIdx);
|
|
|
|
m_editor.selectPage(pageIdx);
|
|
|
|
m_editor._reselectColumns();
|
|
|
|
}
|
|
|
|
++fileIdx;
|
|
|
|
}
|
|
|
|
++colIdx;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
2016-06-09 21:33:26 +00:00
|
|
|
}
|
|
|
|
|
2016-07-14 04:54:46 +00:00
|
|
|
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) { return new amuse::VSTBackend(audioMaster); }
|