Skip to content

Commit

Permalink
eliminated unnecessary checks as they are causing compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPudashkin committed Dec 19, 2024
1 parent 2d9d1b0 commit 68bcf19
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/framework/musesampler/internal/musesamplerresolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,8 @@ InstrumentInfo findInstrument(MuseSamplerLibHandlerPtr libHandler, const AudioRe

while (auto instrument = libHandler->getNextInstrument(instrumentList)) {
int instrumentId = libHandler->getInstrumentId(instrument);
String internalName = String::fromUtf8(libHandler->getInstrumentName(instrument));
String internalCategory = String::fromUtf8(libHandler->getInstrumentCategory(instrument));
String instrumentSoundId = String::fromUtf8(libHandler->getMpeSoundId(instrument));

if (resourceMeta.attributeVal(u"playbackSetupData") == instrumentSoundId
&& resourceMeta.attributeVal(u"museCategory") == internalCategory
&& resourceMeta.attributeVal(u"museName") == internalName
&& resourceMeta.attributeVal(u"museUID") == String::fromStdString(std::to_string(instrumentId))) {

if (resourceMeta.attributeVal(u"museUID") == String::fromStdString(std::to_string(instrumentId))) {
return { instrumentId, instrument };
}
}
Expand Down

0 comments on commit 68bcf19

Please sign in to comment.