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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1877 - (hide annotations) (download) (as text)
Fri Mar 27 12:18:12 2009 UTC (15 years, 1 month ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 1831 byte(s)
* updated LinuxSampler plugin of gigedit to the latest liblinuxsampler
  C++ API changes

1 schoenebeck 1213 /*
2 schoenebeck 1654 * Copyright (C) 2007, 2008 Andreas Persson
3 schoenebeck 1213 *
4     * This program is free software; you can redistribute it and/or
5     * modify it under the terms of the GNU General Public License as
6     * published by the Free Software Foundation; either version 2, or (at
7     * your option) any later version.
8     *
9     * This program is distributed in the hope that it will be useful, but
10     * WITHOUT ANY WARRANTY; without even the implied warranty of
11     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12     * General Public License for more details.
13     *
14     * You should have received a copy of the GNU General Public License
15     * along with program; see the file COPYING. If not, write to the Free
16     * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17     * 02110-1301 USA.
18     */
19    
20     #ifndef GIGEDIT_LINUXSAMPLER_PLUGIN_H
21     #define GIGEDIT_LINUXSAMPLER_PLUGIN_H
22    
23     #include <config.h>
24    
25 schoenebeck 1376 #include <linuxsampler/plugins/InstrumentEditor.h>
26 schoenebeck 1213
27 schoenebeck 1322 #include <gig.h>
28    
29 schoenebeck 1656 class LinuxSamplerPlugin : public LinuxSampler::InstrumentEditor {
30 schoenebeck 1213 public:
31     LinuxSamplerPlugin();
32 schoenebeck 1877 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 schoenebeck 1213 virtual bool IsTypeSupported(String sTypeName, String sTypeVersion);
35     virtual String Name();
36     virtual String Version();
37     virtual String Description();
38 schoenebeck 1654 virtual ~LinuxSamplerPlugin();
39 schoenebeck 1322
40     private:
41 schoenebeck 1654 void* pApp;
42    
43 schoenebeck 1322 void __onSamplesToBeRemoved(std::list<gig::Sample*> lSamples);
44 schoenebeck 1660 void __onVirtualKeyboardKeyHit(int Key, int Velocity);
45     void __onVirtualKeyboardKeyReleased(int Key, int Velocity);
46 schoenebeck 1656 bool __onPollPeriod();
47 schoenebeck 1213 };
48    
49     #endif // GIGEDIT_LINUXSAMPLER_PLUGIN_H

  ViewVC Help
Powered by ViewVC