/[svn]/gigedit/trunk/src/plugin/linuxsamplerplugin.h
ViewVC logotype

Diff of /gigedit/trunk/src/plugin/linuxsamplerplugin.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1213 by schoenebeck, Wed May 30 00:14:05 2007 UTC revision 2689 by schoenebeck, Sun Jan 4 17:19:19 2015 UTC
# Line 1  Line 1 
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
# Line 22  Line 22 
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

Legend:
Removed from v.1213  
changed lines
  Added in v.2689

  ViewVC Help
Powered by ViewVC