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

Contents of /gigedit/trunk/src/plugin/linuxsamplerplugin.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1229 - (show annotations) (download)
Sun Jun 10 11:23:15 2007 UTC (13 years, 10 months ago) by schoenebeck
File size: 1725 byte(s)
- tiny fix of the previous commit batch (directory structure has changed)

1 /*
2 * Copyright (C) 2007 Andreas Persson
3 *
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 #include "linuxsamplerplugin.h"
21
22 #include <gig.h>
23 #include <linuxsampler/engines/InstrumentEditorFactory.h>
24 #include "../gigedit/gigedit.h"
25
26 #include <iostream>
27
28 REGISTER_INSTRUMENT_EDITOR(LinuxSamplerPlugin)
29
30 LinuxSamplerPlugin::LinuxSamplerPlugin() {
31 }
32
33 int LinuxSamplerPlugin::Main(void* pInstrument, String sTypeName, String sTypeVersion) {
34 std::cout << "Entered Gigedit Main() loop :)\n" << std::flush;
35 gig::Instrument* pGigInstr = static_cast<gig::Instrument*>(pInstrument);
36 return GigEdit::run(pGigInstr);
37 }
38
39 bool LinuxSamplerPlugin::IsTypeSupported(String sTypeName, String sTypeVersion) {
40 return sTypeName == gig::libraryName() &&
41 sTypeVersion == gig::libraryVersion();
42 }
43
44 String LinuxSamplerPlugin::Name() {
45 return "gigedit";
46 }
47
48 String LinuxSamplerPlugin::Version() {
49 return VERSION; // gigedit's version
50 }
51
52 String LinuxSamplerPlugin::Description() {
53 return "Gigedit is an instrument editor for gig files.";
54 }

  ViewVC Help
Powered by ViewVC