/[svn]/linuxsampler/trunk/src/engines/sf2/Engine.h
ViewVC logotype

Contents of /linuxsampler/trunk/src/engines/sf2/Engine.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3054 - (show annotations) (download) (as text)
Thu Dec 15 12:47:45 2016 UTC (7 years, 4 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 4162 byte(s)
* Fixed numerous compiler warnings.
* Bumped version (2.0.0.svn32).

1 /***************************************************************************
2 * *
3 * LinuxSampler - modular, streaming capable sampler *
4 * *
5 * Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck *
6 * Copyright (C) 2005-2009 Christian Schoenebeck *
7 * Copyright (C) 2009-2010 Grigor Iliev *
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 * This program is distributed in the hope that it will be useful, *
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
17 * GNU General Public License for more details. *
18 * *
19 * You should have received a copy of the GNU General Public License *
20 * along with this program; if not, write to the Free Software *
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
22 * MA 02111-1307 USA *
23 ***************************************************************************/
24
25 #ifndef __LS_SF2_ENGINE_H__
26 #define __LS_SF2_ENGINE_H__
27
28 #include "DiskThread.h"
29 #include "../EngineBase.h"
30 #include "Voice.h"
31
32 #if AC_APPLE_UNIVERSAL_BUILD
33 # include <libgig/SF.h>
34 #else
35 # include <SF.h>
36 #endif
37
38 namespace LinuxSampler { namespace sf2 {
39
40 class Engine: public LinuxSampler::EngineBase<Voice, ::sf2::Region, ::sf2::Region, DiskThread, InstrumentResourceManager, ::sf2::Preset> {
41 public:
42 Engine() { }
43 virtual ~Engine() { }
44 // implementation of abstract methods derived from class 'LinuxSampler::Engine'
45 virtual bool DiskStreamSupported() OVERRIDE;
46 virtual String Description() OVERRIDE;
47 virtual String Version() OVERRIDE;
48
49 virtual Format GetEngineFormat() OVERRIDE;
50
51 virtual void ProcessControlChange (
52 LinuxSampler::EngineChannel* pEngineChannel,
53 Pool<Event>::Iterator& itControlChangeEvent
54 ) OVERRIDE;
55 virtual void ProcessChannelPressure(LinuxSampler::EngineChannel* pEngineChannel, Pool<Event>::Iterator& itChannelPressureEvent) OVERRIDE;
56 virtual void ProcessPolyphonicKeyPressure(LinuxSampler::EngineChannel* pEngineChannel, Pool<Event>::Iterator& itNotePressureEvent) OVERRIDE;
57
58 friend class Voice;
59
60 protected:
61 virtual DiskThread* CreateDiskThread() OVERRIDE;
62
63 virtual Pool<Voice>::Iterator LaunchVoice (
64 LinuxSampler::EngineChannel* pEngineChannel,
65 Pool<Event>::Iterator& itNoteOnEvent,
66 int iLayer,
67 bool ReleaseTriggerVoice,
68 bool VoiceStealing,
69 bool HandleKeyGroupConflicts
70 ) OVERRIDE;
71
72 virtual void TriggerNewVoices (
73 LinuxSampler::EngineChannel* pEngineChannel,
74 RTList<Event>::Iterator& itNoteOnEvent,
75 bool HandleKeyGroupConflicts
76 ) OVERRIDE;
77
78 void TriggerReleaseVoices (
79 LinuxSampler::EngineChannel* pEngineChannel,
80 RTList<Event>::Iterator& itNoteOffEvent
81 ) OVERRIDE;
82 };
83
84 }} // namespace LinuxSampler::sf2
85
86 #endif /* __LS_SF2_ENGINE_H__ */
87

  ViewVC Help
Powered by ViewVC