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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2390 - (show annotations) (download) (as text)
Sat Jan 5 12:31:05 2013 UTC (11 years, 3 months ago) by persson
File MIME type: text/x-c++hdr
File size: 2834 byte(s)
* fixed compilation with Clang 3.2

1 /***************************************************************************
2 * *
3 * LinuxSampler - modular, streaming capable sampler *
4 * *
5 * Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck *
6 * Copyright (C) 2005 - 2008 Christian Schoenebeck *
7 * Copyright (C) 2009 - 2013 Christian Schoenebeck and 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_ENGINECHANNEL_H__
26 #define __LS_SF2_ENGINECHANNEL_H__
27
28 #include "../AbstractEngine.h"
29 #include "../EngineChannelBase.h"
30 #include "../EngineChannelFactory.h"
31 #include "Voice.h"
32 #include <SF.h>
33
34 namespace LinuxSampler { namespace sf2 {
35 class Voice;
36
37 class EngineChannel: public LinuxSampler::EngineChannelBase<Voice, ::sf2::Region, ::sf2::Preset> {
38 public:
39 virtual void SendProgramChange(uint8_t Program);
40 virtual void LoadInstrument();
41 virtual void ResetInternal();
42
43 virtual AbstractEngine::Format GetEngineFormat();
44
45 friend class Voice;
46 friend class Engine;
47 friend class LinuxSampler::EngineChannelFactory;
48
49 protected:
50 EngineChannel();
51 virtual ~EngineChannel();
52
53 virtual void ProcessKeySwitchChange(int key);
54
55 private:
56 bool PressedKeys[128];
57 int LastKeySwitch;
58 int LastKey;
59 };
60
61 }} // namespace LinuxSampler::sf2
62
63 #endif /* __LS_SF2_ENGINECHANNEL_H__ */

  ViewVC Help
Powered by ViewVC