comparison vamp-sdk/hostext/PluginLoader.cpp @ 92:c94c066a4897

* Add Mark L's PluginBufferingAdapter
author cannam
date Fri, 02 Nov 2007 14:54:04 +0000
parents 6bf198e06d72
children ca44b3594d2e
comparison
equal deleted inserted replaced
91:200a663bace1 92:c94c066a4897
36 36
37 #include "vamp-sdk/PluginHostAdapter.h" 37 #include "vamp-sdk/PluginHostAdapter.h"
38 #include "PluginLoader.h" 38 #include "PluginLoader.h"
39 #include "PluginInputDomainAdapter.h" 39 #include "PluginInputDomainAdapter.h"
40 #include "PluginChannelAdapter.h" 40 #include "PluginChannelAdapter.h"
41 #include "PluginBufferingAdapter.h"
41 42
42 #include <fstream> 43 #include <fstream>
43 #include <cctype> // tolower 44 #include <cctype> // tolower
44 45
45 #ifdef _WIN32 46 #ifdef _WIN32
364 if (adapter->getInputDomain() == Plugin::FrequencyDomain) { 365 if (adapter->getInputDomain() == Plugin::FrequencyDomain) {
365 adapter = new PluginInputDomainAdapter(adapter); 366 adapter = new PluginInputDomainAdapter(adapter);
366 } 367 }
367 } 368 }
368 369
370 if (adapterFlags & ADAPT_BUFFER_SIZE) {
371 adapter = new PluginBufferingAdapter(adapter);
372 }
373
369 if (adapterFlags & ADAPT_CHANNEL_COUNT) { 374 if (adapterFlags & ADAPT_CHANNEL_COUNT) {
370 adapter = new PluginChannelAdapter(adapter); 375 adapter = new PluginChannelAdapter(adapter);
371 } 376 }
372 377
373 return adapter; 378 return adapter;