From 45f85273e9862721c0c3e6f1171722016716d4c5 Mon Sep 17 00:00:00 2001 From: Samuel Gomes Date: Wed, 3 Jul 2024 14:37:57 +0530 Subject: [PATCH] Cleanup --- .../c/parts/audio/extras/foo_midi/InstrumentBankManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/c/parts/audio/extras/foo_midi/InstrumentBankManager.cpp b/internal/c/parts/audio/extras/foo_midi/InstrumentBankManager.cpp index 751e3b1f3..0ee0bdd03 100644 --- a/internal/c/parts/audio/extras/foo_midi/InstrumentBankManager.cpp +++ b/internal/c/parts/audio/extras/foo_midi/InstrumentBankManager.cpp @@ -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; } }