23 |
#include <config.h> |
#include <config.h> |
24 |
|
|
25 |
#include <linuxsampler/plugins/InstrumentEditor.h> |
#include <linuxsampler/plugins/InstrumentEditor.h> |
|
#include "../gigedit/gigedit.h" |
|
26 |
|
|
27 |
#include <gig.h> |
#include <gig.h> |
28 |
|
|
29 |
class LinuxSamplerPlugin : public LinuxSampler::InstrumentEditor, public GigEditJob { |
class LinuxSamplerPlugin : public LinuxSampler::InstrumentEditor { |
30 |
public: |
public: |
31 |
LinuxSamplerPlugin(); |
LinuxSamplerPlugin(); |
32 |
virtual int Main(void* pInstrument, String sTypeName, String sTypeVersion); |
virtual int Main(void* pInstrument, String sTypeName, String sTypeVersion); // old LS plugin API entry point |
33 |
|
virtual int Main(void* pInstrument, String sTypeName, String sTypeVersion, void* pUserData); // new LS plugin API entry point |
34 |
virtual bool IsTypeSupported(String sTypeName, String sTypeVersion); |
virtual bool IsTypeSupported(String sTypeName, String sTypeVersion); |
35 |
virtual String Name(); |
virtual String Name(); |
36 |
virtual String Version(); |
virtual String Version(); |
37 |
virtual String Description(); |
virtual String Description(); |
38 |
virtual ~LinuxSamplerPlugin(); |
virtual ~LinuxSamplerPlugin(); |
39 |
|
|
|
virtual bool runGigEditJob(); |
|
|
|
|
40 |
private: |
private: |
41 |
void* pApp; |
void* pApp; |
42 |
|
|
43 |
void __onSamplesToBeRemoved(std::list<gig::Sample*> lSamples); |
void __onSamplesToBeRemoved(std::list<gig::Sample*> lSamples); |
44 |
|
void __onVirtualKeyboardKeyHit(int Key, int Velocity); |
45 |
|
void __onVirtualKeyboardKeyReleased(int Key, int Velocity); |
46 |
|
bool __onPollPeriod(); |
47 |
}; |
}; |
48 |
|
|
49 |
#endif // GIGEDIT_LINUXSAMPLER_PLUGIN_H |
#endif // GIGEDIT_LINUXSAMPLER_PLUGIN_H |