1 |
schoenebeck |
411 |
/*************************************************************************** |
2 |
|
|
* * |
3 |
|
|
* LinuxSampler - modular, streaming capable sampler * |
4 |
|
|
* * |
5 |
persson |
2390 |
* 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 |
schoenebeck |
411 |
* * |
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_GIG_ENGINECHANNEL_H__ |
26 |
iliev |
2012 |
#define __LS_GIG_ENGINECHANNEL_H__ |
27 |
schoenebeck |
411 |
|
28 |
iliev |
2012 |
#include "../AbstractEngine.h" |
29 |
|
|
#include "../EngineChannelBase.h" |
30 |
|
|
#include "../EngineChannelFactory.h" |
31 |
schoenebeck |
412 |
#include "Voice.h" |
32 |
iliev |
2012 |
#include <gig.h> |
33 |
schoenebeck |
411 |
|
34 |
|
|
namespace LinuxSampler { namespace gig { |
35 |
persson |
2390 |
class Voice; |
36 |
|
|
|
37 |
iliev |
2012 |
class EngineChannel: public LinuxSampler::EngineChannelBase<Voice, ::gig::DimensionRegion, ::gig::Instrument> { |
38 |
|
|
public: |
39 |
|
|
virtual void SendProgramChange(uint8_t Program); |
40 |
|
|
virtual void LoadInstrument(); |
41 |
|
|
virtual void ResetInternal(); |
42 |
schoenebeck |
2330 |
virtual String InstrumentFileName(); |
43 |
|
|
virtual String InstrumentFileName(int index); |
44 |
schoenebeck |
411 |
|
45 |
iliev |
2012 |
virtual AbstractEngine::Format GetEngineFormat(); |
46 |
schoenebeck |
411 |
|
47 |
iliev |
2012 |
friend class Voice; |
48 |
|
|
friend class Engine; |
49 |
|
|
friend class LinuxSampler::EngineChannelFactory; |
50 |
|
|
|
51 |
|
|
protected: |
52 |
schoenebeck |
411 |
EngineChannel(); |
53 |
schoenebeck |
460 |
virtual ~EngineChannel(); |
54 |
|
|
|
55 |
iliev |
2012 |
float CurrentKeyDimension; ///< Current value (0-1.0) for the keyboard dimension, altered by pressing a keyswitching key. |
56 |
schoenebeck |
411 |
|
57 |
iliev |
2012 |
virtual void ProcessKeySwitchChange(int key); |
58 |
schoenebeck |
460 |
|
59 |
schoenebeck |
411 |
}; |
60 |
|
|
|
61 |
|
|
}} // namespace LinuxSampler::gig |
62 |
|
|
|
63 |
iliev |
2012 |
#endif /* __LS_GIG_ENGINECHANNEL_H__ */ |