32 |
#include "../common/EngineChannel.h" |
#include "../common/EngineChannel.h" |
33 |
#include "EngineGlobals.h" |
#include "EngineGlobals.h" |
34 |
#include "Engine.h" |
#include "Engine.h" |
35 |
|
#include "Voice.h" |
36 |
#include "InstrumentResourceManager.h" |
#include "InstrumentResourceManager.h" |
37 |
|
|
38 |
namespace LinuxSampler { namespace gig { |
namespace LinuxSampler { namespace gig { |
39 |
|
|
40 |
|
// just symbol prototyping |
41 |
class midi_key_info_t; |
class midi_key_info_t; |
42 |
|
class Voice; |
43 |
|
|
44 |
class EngineChannel : public LinuxSampler::EngineChannel, public InstrumentConsumer { |
class EngineChannel : public LinuxSampler::EngineChannel, public InstrumentConsumer { |
45 |
public: |
public: |
47 |
virtual ~EngineChannel(); |
virtual ~EngineChannel(); |
48 |
|
|
49 |
// implementation of abstract methods derived from interface class 'LinuxSampler::EngineChannel' |
// implementation of abstract methods derived from interface class 'LinuxSampler::EngineChannel' |
|
virtual int RenderAudio(uint Samples); |
|
50 |
virtual void PrepareLoadInstrument(const char* FileName, uint Instrument); |
virtual void PrepareLoadInstrument(const char* FileName, uint Instrument); |
51 |
virtual void LoadInstrument(); |
virtual void LoadInstrument(); |
52 |
virtual void SendNoteOn(uint8_t Key, uint8_t Velocity); |
virtual void SendNoteOn(uint8_t Key, uint8_t Velocity); |
89 |
String InstrumentFile; |
String InstrumentFile; |
90 |
int InstrumentIdx; |
int InstrumentIdx; |
91 |
String InstrumentIdxName; |
String InstrumentIdxName; |
92 |
int InstrumentStat; |
int InstrumentStat; |
93 |
|
RTList<Voice>::Iterator itLastStolenVoice; ///< Only for voice stealing: points to the last voice which was theft in current audio fragment, NULL otherwise. |
94 |
|
RTList<uint>::Iterator iuiLastStolenKey; ///< Only for voice stealing: key number of last key on which the last voice was theft in current audio fragment, NULL otherwise. |
95 |
|
|
96 |
friend class Engine; |
friend class Engine; |
97 |
friend class Voice; |
friend class Voice; |