From 795043d6851a355d70aa2341e2edfd526c24d041 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 16 Jun 2019 20:12:14 +0800 Subject: Inital implementation of the device properties API. Added new interfaces to qmpMidiOutDevice. Implemented the new interfaces for qmpMidiOutFluid. Initial infra for device initialization file parsing. Move to the new interfaces for getting list of presets. Use DevIL instead of CxImage. External output devices are broken now but that is for another commit. --- include/qmpcorepublic.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/qmpcorepublic.hpp b/include/qmpcorepublic.hpp index a4949ac..34e4ea6 100644 --- a/include/qmpcorepublic.hpp +++ b/include/qmpcorepublic.hpp @@ -24,6 +24,8 @@ struct SEvent p1=_p1;p2=_p2;flags=0; if(s)str=std::string(s);else str=""; } + SEvent(uint32_t _iid,uint32_t _t,uint8_t _tp,uint8_t _p1,uint8_t _p2,std::string s): + iid(_iid),time(_t),type(_tp),p1(_p1),p2(_p2),str(s){} friend bool operator <(const SEvent& a,const SEvent& b){return a.time-b.time?a.time> getBankList()=0; + virtual std::vector> getPresets(int bank)=0; + virtual std::string getPresetName(uint16_t bank,uint8_t preset)=0; + virtual bool getChannelPreset(int ch,uint16_t *bank,uint8_t *preset,std::string &presetname)=0; + virtual uint8_t getInitialCCValue(uint8_t cc)=0; virtual ~qmpMidiOutDevice(){} }; //Main plugin interface. -- cgit v1.2.3