Clean up extra opcode stuff
This commit is contained in:
parent
2d493d6d81
commit
cf27d43705
@ -849,19 +849,20 @@ pointer_sized_int PaulstretchpluginAudioProcessor::handleVstPluginCanDo(int32 in
|
||||
{
|
||||
if (strcmp((char*)ptr, "xenakios") == 0)
|
||||
{
|
||||
if (index == 0)
|
||||
if (index == 0 && (void*)value!=nullptr)
|
||||
{
|
||||
double t0 = *getFloatParameter(cpi_soundstart);
|
||||
double t1 = *getFloatParameter(cpi_soundend);
|
||||
m_outlen = (t1-t0)*m_stretch_source->getInfileLengthSeconds()*(*getFloatParameter(cpi_stretchamount));
|
||||
std::cout << "host requested output length, result " << m_outlen << "\n";
|
||||
return pointer_sized_int(&m_outlen);
|
||||
double outlen = (t1-t0)*m_stretch_source->getInfileLengthSeconds()*(*getFloatParameter(cpi_stretchamount));
|
||||
//std::cout << "host requested output length, result " << outlen << "\n";
|
||||
*((double*)value) = outlen;
|
||||
}
|
||||
if (index == 1 && (void*)value!=nullptr)
|
||||
{
|
||||
String fn(CharPointer_UTF8((char*)value));
|
||||
std::cout << "host requested to set audio file " << fn << "\n";
|
||||
//std::cout << "host requested to set audio file " << fn << "\n";
|
||||
auto err = setAudioFile(File(fn));
|
||||
if (err.isEmpty()==false)
|
||||
std::cout << err << "\n";
|
||||
}
|
||||
return 1;
|
||||
|
@ -254,7 +254,6 @@ private:
|
||||
float m_cur_playrangeoffset = 0.0;
|
||||
void updateStretchParametersFromPluginParameters(ProcessParameters& pars);
|
||||
std::array<AudioParameterBool*, 9> m_sm_enab_pars;
|
||||
double m_outlen = 0.0;
|
||||
//==============================================================================
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessor)
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user