1 |
/* |
/* |
2 |
* Copyright (C) 2007 Andreas Persson |
* Copyright (C) 2007 - 2015 Andreas Persson |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
* modify it under the terms of the GNU General Public License as |
22 |
|
|
23 |
#include <config.h> |
#include <config.h> |
24 |
|
|
25 |
#include <linuxsampler/engines/InstrumentEditor.h> |
#include <linuxsampler/plugins/InstrumentEditor.h> |
26 |
|
|
27 |
|
#include <gig.h> |
28 |
|
|
29 |
class LinuxSamplerPlugin : public LinuxSampler::InstrumentEditor { |
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(); |
39 |
|
|
40 |
|
private: |
41 |
|
void* pApp; |
42 |
|
|
43 |
|
void __onSamplesToBeRemoved(std::list<gig::Sample*> lSamples); |
44 |
|
void __onVirtualKeyboardKeyHit(int Key, int Velocity); |
45 |
|
void __onVirtualKeyboardKeyReleased(int Key, int Velocity); |
46 |
|
void __requestSamplerToSwitchInstrument(gig::Instrument* pInstrument); |
47 |
|
bool __onPollPeriod(); |
48 |
}; |
}; |
49 |
|
|
50 |
#endif // GIGEDIT_LINUXSAMPLER_PLUGIN_H |
#endif // GIGEDIT_LINUXSAMPLER_PLUGIN_H |