presets and banks saved correctly in audio plugin host. display seems to work also.

This commit is contained in:
Alex Birch
2018-04-13 01:14:07 +01:00
parent 7dc05c72c9
commit a82e7e450b
7 changed files with 70 additions and 13 deletions

View File

@ -8,11 +8,14 @@
#include "SharesParams.h"
#include <fluidsynth.h>
#include <memory>
#include "BankAndPreset.h"
#include "PresetsToBanks.h"
// https://stackoverflow.com/a/13446565/5257399
using std::shared_ptr;
//using std::shared_ptr;
using namespace std;
class FluidSynthModel {
public:
@ -27,7 +30,7 @@ public:
void changePreset(int bank, int preset);
int getChannel();
void onFileNameChanged(const String &absPath);
void onFileNameChanged(const String &absPath, int bank, int preset);
//==============================================================================
/**
@ -69,6 +72,7 @@ private:
const fluid_preset_t getFirstPreset();
void selectFirstPreset();
unique_ptr<BankAndPreset> getFirstBankAndPreset();
void unloadAndLoadFont(const String &absPath);
void loadFont(const String &absPath);