219 |
pEvents->clear(); |
pEvents->clear(); |
220 |
// empty MIDI key specific event lists |
// empty MIDI key specific event lists |
221 |
ClearEventListsHandler handler; |
ClearEventListsHandler handler; |
222 |
ProcessActiveVoices(&handler); |
this->ProcessActiveVoices(&handler); |
223 |
|
|
224 |
// empty exclusive group specific event lists |
// empty exclusive group specific event lists |
225 |
ClearGroupEventLists(); |
// (pInstrument == 0 could mean that LoadInstrument is |
226 |
|
// building new group event lists, so we must check |
227 |
|
// for that) |
228 |
|
if (pInstrument) ClearGroupEventLists(); |
229 |
} |
} |
230 |
|
|
231 |
// implementation of abstract methods derived from interface class 'InstrumentConsumer' |
// implementation of abstract methods derived from interface class 'InstrumentConsumer' |
266 |
|
|
267 |
void RenderActiveVoices(uint Samples) { |
void RenderActiveVoices(uint Samples) { |
268 |
RenderVoicesHandler handler(this, Samples); |
RenderVoicesHandler handler(this, Samples); |
269 |
ProcessActiveVoices(&handler); |
this->ProcessActiveVoices(&handler); |
270 |
|
|
271 |
SetVoiceCount(handler.VoiceCount); |
SetVoiceCount(handler.VoiceCount); |
272 |
SetDiskStreamCount(handler.StreamCount); |
SetDiskStreamCount(handler.StreamCount); |