Clean up the non working VST manufacturer specific stuff
This commit is contained in:
parent
8421269565
commit
bca5cc5dcf
@ -67,7 +67,7 @@ inline AudioParameterFloat* make_floatpar(String id, String name, float minv, fl
|
|||||||
PaulstretchpluginAudioProcessor::PaulstretchpluginAudioProcessor()
|
PaulstretchpluginAudioProcessor::PaulstretchpluginAudioProcessor()
|
||||||
: m_bufferingthread("pspluginprebufferthread")
|
: m_bufferingthread("pspluginprebufferthread")
|
||||||
{
|
{
|
||||||
getProperties().set("isgenerator", true);
|
|
||||||
g_activeprocessors.insert(this);
|
g_activeprocessors.insert(this);
|
||||||
m_playposinfo.timeInSeconds = 0.0;
|
m_playposinfo.timeInSeconds = 0.0;
|
||||||
|
|
||||||
@ -580,16 +580,6 @@ void copyAudioBufferWrappingPosition(const AudioBuffer<float>& src, AudioBuffer<
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pointer_sized_int PaulstretchpluginAudioProcessor::handleVstManufacturerSpecific(int32 index, pointer_sized_int value, void * ptr, float opt)
|
|
||||||
{
|
|
||||||
if (index == 10000)
|
|
||||||
{
|
|
||||||
*((double*)(ptr)) = 6.66;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
return pointer_sized_int();
|
|
||||||
}
|
|
||||||
|
|
||||||
void PaulstretchpluginAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages)
|
void PaulstretchpluginAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages)
|
||||||
{
|
{
|
||||||
ScopedLock locker(m_cs);
|
ScopedLock locker(m_cs);
|
||||||
@ -794,9 +784,6 @@ void PaulstretchpluginAudioProcessor::timerCallback(int id)
|
|||||||
{
|
{
|
||||||
if (id == 1)
|
if (id == 1)
|
||||||
{
|
{
|
||||||
double outlen = m_stretch_source->getOutputDurationSecondsForRange(m_stretch_source->getPlayRange(),
|
|
||||||
m_stretch_source->getFFTSize());
|
|
||||||
getProperties().set("outputlength", outlen);
|
|
||||||
bool capture = getParameter(cpi_capture_enabled);
|
bool capture = getParameter(cpi_capture_enabled);
|
||||||
if (capture == false && m_max_reclen != *getFloatParameter(cpi_max_capture_len))
|
if (capture == false && m_max_reclen != *getFloatParameter(cpi_max_capture_len))
|
||||||
{
|
{
|
||||||
|
@ -104,7 +104,7 @@ public:
|
|||||||
class PaulstretchpluginAudioProcessorEditor;
|
class PaulstretchpluginAudioProcessorEditor;
|
||||||
|
|
||||||
class PaulstretchpluginAudioProcessor : public AudioProcessor,
|
class PaulstretchpluginAudioProcessor : public AudioProcessor,
|
||||||
public MultiTimer, public VSTCallbackHandler
|
public MultiTimer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using EditorType = PaulstretchpluginAudioProcessorEditor;
|
using EditorType = PaulstretchpluginAudioProcessorEditor;
|
||||||
@ -119,12 +119,7 @@ public:
|
|||||||
bool isBusesLayoutSupported (const BusesLayout& layouts) const override;
|
bool isBusesLayoutSupported (const BusesLayout& layouts) const override;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pointer_sized_int handleVstManufacturerSpecific(int32 index,
|
void processBlock (AudioSampleBuffer&, MidiBuffer&) override;
|
||||||
pointer_sized_int value,
|
|
||||||
void* ptr,
|
|
||||||
float opt) override;
|
|
||||||
|
|
||||||
void processBlock (AudioSampleBuffer&, MidiBuffer&) override;
|
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
AudioProcessorEditor* createEditor() override;
|
AudioProcessorEditor* createEditor() override;
|
||||||
|
Loading…
Reference in New Issue
Block a user