71 |
|
|
72 |
void SetVoiceCount(uint Count); |
void SetVoiceCount(uint Count); |
73 |
|
|
74 |
|
/** |
75 |
|
* Returns event with the given event ID. |
76 |
|
*/ |
77 |
|
RTList<Event>::Iterator EventByID(int id) { |
78 |
|
return pEventPool->fromID(id); |
79 |
|
} |
80 |
|
|
81 |
float Random() { |
float Random() { |
82 |
RandomSeed = RandomSeed * 1103515245 + 12345; // classic pseudo random number generator |
RandomSeed = RandomSeed * 1103515245 + 12345; // classic pseudo random number generator |
83 |
return RandomSeed / 4294967296.0f; |
return RandomSeed / 4294967296.0f; |
164 |
virtual void ProcessChannelPressure(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itChannelPressureEvent) = 0; |
virtual void ProcessChannelPressure(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itChannelPressureEvent) = 0; |
165 |
virtual void ProcessPolyphonicKeyPressure(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itNotePressureEvent) = 0; |
virtual void ProcessPolyphonicKeyPressure(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itNotePressureEvent) = 0; |
166 |
virtual int GetMinFadeOutSamples() = 0; |
virtual int GetMinFadeOutSamples() = 0; |
167 |
|
virtual InstrumentScriptVM* CreateInstrumentScriptVM(); |
168 |
|
|
169 |
private: |
private: |
170 |
static std::map<Format, std::map<AudioOutputDevice*,AbstractEngine*> > engines; |
static std::map<Format, std::map<AudioOutputDevice*,AbstractEngine*> > engines; |