Fixed unsorted bank files.
This commit is contained in:
parent
503df59b48
commit
1ceefd9d13
2 changed files with 12 additions and 8 deletions
|
@ -499,7 +499,7 @@ void ObxdAudioProcessorEditor::sliderValueChanged (Slider* c)
|
||||||
handleSParam(lfoAmt1Knob,LFO1AMT)
|
handleSParam(lfoAmt1Knob,LFO1AMT)
|
||||||
handleSParam(lfoAmt2Knob,LFO2AMT)
|
handleSParam(lfoAmt2Knob,LFO2AMT)
|
||||||
|
|
||||||
handleSParam(pan1Knob,PAN1)
|
handleSParam(pan1Knob,PAN1)
|
||||||
handleSParam(pan2Knob,PAN2)
|
handleSParam(pan2Knob,PAN2)
|
||||||
handleSParam(pan3Knob,PAN3)
|
handleSParam(pan3Knob,PAN3)
|
||||||
handleSParam(pan4Knob,PAN4)
|
handleSParam(pan4Knob,PAN4)
|
||||||
|
@ -645,7 +645,7 @@ void ObxdAudioProcessorEditor::mouseUp(const MouseEvent& e)
|
||||||
DirectoryIterator it(getFilter()->getSkinFolder(), false, "*", File::findDirectories);
|
DirectoryIterator it(getFilter()->getSkinFolder(), false, "*", File::findDirectories);
|
||||||
while (it.next())
|
while (it.next())
|
||||||
{
|
{
|
||||||
skins.addUsingDefaultSort(it.getFile());r
|
skins.addUsingDefaultSort(it.getFile());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < skins.size(); ++i)
|
for (int i = 0; i < skins.size(); ++i)
|
||||||
|
@ -659,8 +659,8 @@ void ObxdAudioProcessorEditor::mouseUp(const MouseEvent& e)
|
||||||
|
|
||||||
int bankStart = 1000;
|
int bankStart = 1000;
|
||||||
{
|
{
|
||||||
const String currentBank = getFilter()->getCurrentBankFile().getFileName();
|
const String currentBank = getFilter()->getCurrentBankFile().getFileName();
|
||||||
|
|
||||||
for (int i = 0; i < banks.size(); ++i)
|
for (int i = 0; i < banks.size(); ++i)
|
||||||
{
|
{
|
||||||
const File bank = banks.getUnchecked(i);
|
const File bank = banks.getUnchecked(i);
|
||||||
|
|
|
@ -491,7 +491,7 @@ const String ObxdAudioProcessor::getParameterName (int index)
|
||||||
case FREL:
|
case FREL:
|
||||||
return S("FilterRelease");
|
return S("FilterRelease");
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
const String ObxdAudioProcessor::getParameterText (int index)
|
const String ObxdAudioProcessor::getParameterText (int index)
|
||||||
|
@ -752,7 +752,7 @@ void ObxdAudioProcessor::getStateInformation (MemoryBlock& destData)
|
||||||
|
|
||||||
copyXmlToBinary(xmlState,destData);
|
copyXmlToBinary(xmlState,destData);
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
void ObxdAudioProcessor::setStateInformation (const void* data, int sizeInBytes)
|
void ObxdAudioProcessor::setStateInformation (const void* data, int sizeInBytes)
|
||||||
{
|
{
|
||||||
if (XmlElement* const xmlState = getXmlFromBinary(data,sizeInBytes))
|
if (XmlElement* const xmlState = getXmlFromBinary(data,sizeInBytes))
|
||||||
|
@ -782,6 +782,8 @@ void ObxdAudioProcessor::setStateInformation (const void* data, int sizeInBytes)
|
||||||
}
|
}
|
||||||
|
|
||||||
setCurrentProgram(xmlState->getIntAttribute(S("currentProgram"), 0));
|
setCurrentProgram(xmlState->getIntAttribute(S("currentProgram"), 0));
|
||||||
|
|
||||||
|
delete xmlState;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -799,9 +801,11 @@ void ObxdAudioProcessor::setCurrentProgramStateInformation(const void* data,int
|
||||||
programs.currentProgramPtr->name = e->getStringAttribute(S("programName"), S("Default"));
|
programs.currentProgramPtr->name = e->getStringAttribute(S("programName"), S("Default"));
|
||||||
|
|
||||||
setCurrentProgram(programs.currentProgram);
|
setCurrentProgram(programs.currentProgram);
|
||||||
|
|
||||||
|
delete e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
void ObxdAudioProcessor::getCurrentProgramStateInformation(MemoryBlock& destData)
|
void ObxdAudioProcessor::getCurrentProgramStateInformation(MemoryBlock& destData)
|
||||||
{
|
{
|
||||||
XmlElement xmlState = XmlElement("Datsounds");
|
XmlElement xmlState = XmlElement("Datsounds");
|
||||||
|
@ -941,7 +945,7 @@ void ObxdAudioProcessor::scanAndUpdateBanks()
|
||||||
DirectoryIterator it(getBanksFolder(), false, "*.fxb", File::findFiles);
|
DirectoryIterator it(getBanksFolder(), false, "*.fxb", File::findFiles);
|
||||||
while (it.next())
|
while (it.next())
|
||||||
{
|
{
|
||||||
bankFiles.addUsingDefaultSort(it.getFile());
|
bankFiles.addUsingDefaultSort(it.getFile());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue