aboutsummaryrefslogtreecommitdiff
path: root/core/qmpmidioutfluid.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2020-04-19 23:36:48 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-04-19 23:36:48 +0800
commit6d568d07b31ba2ae39703cfd272d3003ea542018 (patch)
tree58dca1ac27ffe9dd6bb045c5a71d04644b7a2e07 /core/qmpmidioutfluid.hpp
parentc7bf3e37e6eaed6895c797f72ef116b42c6f8a44 (diff)
downloadQMidiPlayer-6d568d07b31ba2ae39703cfd272d3003ea542018.tar.xz
Legacy code massacre!
Complete reconstruction of the settings infrastructure. All options are now registered using a revamped option API. Legacy configuration files are no longer compatible. Please make a backup.
Diffstat (limited to 'core/qmpmidioutfluid.hpp')
-rw-r--r--core/qmpmidioutfluid.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/qmpmidioutfluid.hpp b/core/qmpmidioutfluid.hpp
index 9c84264..63963ee 100644
--- a/core/qmpmidioutfluid.hpp
+++ b/core/qmpmidioutfluid.hpp
@@ -25,10 +25,14 @@ class qmpMidiOutFluid:public qmpMidiOutDevice,public IFluidSettings
fluid_audio_driver_t* adriver;
std::vector<std::pair<uint16_t,std::string>> bnk;
std::unordered_map<uint16_t,std::vector<std::string>> pst;
+ qmpPluginAPI* coreapi;
+ std::vector<std::string> drivers;
+ int default_driver=-1;
void update_preset_list();
public:
qmpMidiOutFluid();
~qmpMidiOutFluid();
+ void registerOptions(qmpPluginAPI *coreapi);
void deviceInit();
void deviceDeinit();
void deviceDeinit(bool freshsettings);