2
0
Fork 0

Fixed standalone and AAX GUI issues

master v2.2
George Reales 2022-04-11 11:45:04 +02:00
parent 3591bfb81e
commit e365b6d26a
2 changed files with 1 additions and 13 deletions

View File

@ -511,9 +511,6 @@ AdlibBlasterAudioProcessor::AdlibBlasterAudioProcessor()
for (int i = 1; i <= Hiopl::CHANNELS; ++i) for (int i = 1; i <= Hiopl::CHANNELS; ++i)
available_channels.push_back(i); available_channels.push_back(i);
workaround_flag = true;
} }
void AdlibBlasterAudioProcessor::initPrograms() void AdlibBlasterAudioProcessor::initPrograms()
@ -872,10 +869,7 @@ void AdlibBlasterAudioProcessor::endChangeGesture (String name) {
// Parameters which apply directly to the OPL // Parameters which apply directly to the OPL
void AdlibBlasterAudioProcessor::setParameter (int index, float newValue, bool notify, bool updatetoHost) void AdlibBlasterAudioProcessor::setParameter (int index, float newValue, bool notify, bool updatetoHost)
{ {
FloatParameter* p = params[index];
if (workaround_flag) return;
FloatParameter* p = params[index];
p->setParameter(newValue); p->setParameter(newValue);
String name = p->getName(); String name = p->getName();
if (updatetoHost) { if (updatetoHost) {
@ -1259,9 +1253,6 @@ Identifier stringToIdentifier(const String &s)
void AdlibBlasterAudioProcessor::getStateInformation(MemoryBlock& destData) void AdlibBlasterAudioProcessor::getStateInformation(MemoryBlock& destData)
{ {
if (workaround_flag) workaround_flag = false;
ReferenceCountedObjectPtr<DynamicObject> v(new DynamicObject); ReferenceCountedObjectPtr<DynamicObject> v(new DynamicObject);
v->setProperty(stringToIdentifier(PROGRAM_INDEX), i_program); v->setProperty(stringToIdentifier(PROGRAM_INDEX), i_program);

View File

@ -116,9 +116,6 @@ private:
std::unique_ptr<UndoManager> undoManager; std::unique_ptr<UndoManager> undoManager;
std::unique_ptr<AudioProcessorValueTreeState> valueTree; std::unique_ptr<AudioProcessorValueTreeState> valueTree;
bool workaround_flag;
//============================================================================== //==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AdlibBlasterAudioProcessor) JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AdlibBlasterAudioProcessor)
}; };