1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioPluginHost: Include example plugins in project

This change adds the examples from `examples/Plugins` to the
AudioPluginHost, surfacing them as 'internal' plugins in the popup menu.
This commit is contained in:
reuk 2020-03-18 12:03:41 +00:00 committed by ed
parent 8433c098b9
commit f20b93a458
33 changed files with 1641 additions and 450 deletions

View file

@ -259,9 +259,9 @@ private:
//==============================================================================
AudioProcessorParameter* getParameter (const String& paramId)
{
if (auto* processor = getAudioProcessor())
if (auto* audioProcessor = getAudioProcessor())
{
auto& params = processor->getParameters();
auto& params = audioProcessor->getParameters();
for (auto p : params)
{
@ -356,13 +356,14 @@ public:
reverb.processStereo (buffer.getWritePointer (0), buffer.getWritePointer (1), buffer.getNumSamples());
}
using AudioProcessor::processBlock;
//==============================================================================
void releaseResources() override { currentRecording.setSize (1, 1); }
//==============================================================================
bool acceptsMidi() const override { return true; }
bool producesMidi() const override { return false; }
bool silenceInProducesSilenceOut() const override { return false; }
double getTailLengthSeconds() const override { return 0.0; }
//==============================================================================
@ -383,6 +384,7 @@ public:
case 1: return "Singing";
case 2: return "Pinched Balloon";
case 3: return "Gazeebo";
default: break;
}
return "<Unknown>";
@ -408,6 +410,7 @@ public:
roomSizeParam->setValueNotifyingHost (stream.readFloat());
}
private:
//==============================================================================
void loadNewSampleBinary (const void* data, int dataSize, const char* format)