1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

Revised multibus API and added support for multibus hosting

This commit is contained in:
hogliux 2016-09-16 17:06:19 +01:00
parent ebf19aa61a
commit 4fa0516f40
140 changed files with 6836 additions and 4478 deletions

View file

@ -294,6 +294,16 @@ static const unsigned char temp_binary_data_4[] =
"\r\n"
"//==============================================================================\r\n"
"FILTERCLASSNAME::FILTERCLASSNAME()\r\n"
"#ifndef JucePlugin_PreferredChannelConfigurations\r\n"
" : AudioProcessor (BusesProperties()\r\n"
" #if ! JucePlugin_IsMidiEffect\r\n"
" #if ! JucePlugin_IsSynth\r\n"
" .withInput (\"Input\", AudioChannelSet::stereo(), true)\r\n"
" #endif\r\n"
" .withOutput (\"Output\", AudioChannelSet::stereo(), true)\r\n"
" #endif\r\n"
" )\r\n"
"#endif\r\n"
"{\r\n"
"}\r\n"
"\r\n"
@ -368,27 +378,26 @@ static const unsigned char temp_binary_data_4[] =
"}\r\n"
"\r\n"
"#ifndef JucePlugin_PreferredChannelConfigurations\r\n"
"bool FILTERCLASSNAME::setPreferredBusArrangement (bool isInput, int bus, const AudioChannelSet& preferredSet)\r\n"
"bool FILTERCLASSNAME::isBusesLayoutSupported (const BusesLayout& layouts) const\r\n"
"{\r\n"
" // Reject any bus arrangements that are not compatible with your plugin\r\n"
"\r\n"
" const int numChannels = preferredSet.size();\r\n"
"\r\n"
" #if JucePlugin_IsMidiEffect\r\n"
" if (numChannels != 0)\r\n"
" return false;\r\n"
" #elif JucePlugin_IsSynth\r\n"
" if (isInput || (numChannels != 1 && numChannels != 2))\r\n"
" return false;\r\n"
" #else\r\n"
" if (numChannels != 1 && numChannels != 2)\r\n"
" #if JucePlugin_IsMidiEffect\r\n"
" ignoreUnused (layouts);\r\n"
" return true;\r\n"
" #else\r\n"
" // This is the place where you check if the layout is supported.\r\n"
" // In this template code we only support mono or stereo.\r\n"
" if (layouts.getMainOutputChannelSet() != AudioChannelSet::mono()\r\n"
" && layouts.getMainOutputChannelSet() != AudioChannelSet::stereo())\r\n"
" return false;\r\n"
"\r\n"
" if (! AudioProcessor::setPreferredBusArrangement (! isInput, bus, preferredSet))\r\n"
" // This checks if the input layout matches the output layout\r\n"
" #if ! JucePlugin_IsSynth\r\n"
" if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet())\r\n"
" return false;\r\n"
" #endif\r\n"
"\r\n"
" return AudioProcessor::setPreferredBusArrangement (isInput, bus, preferredSet);\r\n"
" return true;\r\n"
" #endif\r\n"
"}\r\n"
"#endif\r\n"
"\r\n"
@ -483,7 +492,7 @@ static const unsigned char temp_binary_data_5[] =
" void releaseResources() override;\r\n"
"\r\n"
" #ifndef JucePlugin_PreferredChannelConfigurations\r\n"
" bool setPreferredBusArrangement (bool isInput, int bus, const AudioChannelSet& preferredSet) override;\r\n"
" bool isBusesLayoutSupported (const BusesLayout& layouts) const override;\r\n"
" #endif\r\n"
"\r\n"
" void processBlock (AudioSampleBuffer&, MidiBuffer&) override;\r\n"
@ -4050,8 +4059,8 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw
case 0xafccbd3f: numBytes = 3203; return jucer_AudioComponentTemplate_cpp;
case 0x27c5a93a: numBytes = 1162; return jucer_AudioPluginEditorTemplate_cpp;
case 0x4d0721bf: numBytes = 994; return jucer_AudioPluginEditorTemplate_h;
case 0x51b49ac5: numBytes = 5047; return jucer_AudioPluginFilterTemplate_cpp;
case 0x488afa0a: numBytes = 2289; return jucer_AudioPluginFilterTemplate_h;
case 0x51b49ac5: numBytes = 5475; return jucer_AudioPluginFilterTemplate_cpp;
case 0x488afa0a: numBytes = 2259; return jucer_AudioPluginFilterTemplate_h;
case 0xabad7041: numBytes = 2151; return jucer_ComponentTemplate_cpp;
case 0xfc72fe86: numBytes = 2131; return jucer_ComponentTemplate_h;
case 0x0b66646c: numBytes = 886; return jucer_ContentCompTemplate_cpp;

View file

@ -22,10 +22,10 @@ namespace BinaryData
const int jucer_AudioPluginEditorTemplate_hSize = 994;
extern const char* jucer_AudioPluginFilterTemplate_cpp;
const int jucer_AudioPluginFilterTemplate_cppSize = 5047;
const int jucer_AudioPluginFilterTemplate_cppSize = 5475;
extern const char* jucer_AudioPluginFilterTemplate_h;
const int jucer_AudioPluginFilterTemplate_hSize = 2289;
const int jucer_AudioPluginFilterTemplate_hSize = 2259;
extern const char* jucer_ComponentTemplate_cpp;
const int jucer_ComponentTemplate_cppSize = 2151;