1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-09-19 21:25:11 +00:00
This commit is contained in:
Samuel Gomes 2024-07-03 14:37:57 +05:30
parent 31d42b439b
commit 45f85273e9

View file

@ -43,10 +43,11 @@ void InstrumentBankManager::SetData(const uint8_t *data, size_t size, Type type)
fileName.clear();
location = Location::Memory;
this->data.assign(data, data + size);
this->type = type;
if (type == Type::Primesynth)
this->type = Type::TinySoundFont; // primesynth cannot load soundfonts from memory
else
this->type = type;
}
}