361 |
ActiveVoiceCountTemp = 0; |
ActiveVoiceCountTemp = 0; |
362 |
|
|
363 |
|
|
364 |
// render audio on all engine channels |
// handle events on all engine channels |
365 |
for (int i = 0; i < engineChannels.size(); i++) { |
for (int i = 0; i < engineChannels.size(); i++) { |
366 |
if (!engineChannels[i]->pInstrument) continue; // ignore if no instrument loaded |
if (!engineChannels[i]->pInstrument) continue; // ignore if no instrument loaded |
|
// handle events on that engine channel |
|
367 |
ProcessEvents(engineChannels[i], Samples); |
ProcessEvents(engineChannels[i], Samples); |
368 |
// render all 'normal', active voices |
} |
369 |
|
|
370 |
|
// render all 'normal', active voices on all engine channels |
371 |
|
for (int i = 0; i < engineChannels.size(); i++) { |
372 |
|
if (!engineChannels[i]->pInstrument) continue; // ignore if no instrument loaded |
373 |
RenderActiveVoices(engineChannels[i], Samples); |
RenderActiveVoices(engineChannels[i], Samples); |
374 |
} |
} |
375 |
|
|
1054 |
} |
} |
1055 |
|
|
1056 |
String Engine::Version() { |
String Engine::Version() { |
1057 |
String s = "$Revision: 1.31 $"; |
String s = "$Revision: 1.32 $"; |
1058 |
return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword |
return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword |
1059 |
} |
} |
1060 |
|
|