31 |
* Will be called by the voice for every audio fragment to let the EG |
* Will be called by the voice for every audio fragment to let the EG |
32 |
* queue it's modulation changes for the current audio fragment. |
* queue it's modulation changes for the current audio fragment. |
33 |
*/ |
*/ |
34 |
void EG_VCA::ProcessFragment() { |
void EG_VCA::Process(uint Samples) { |
35 |
if (Stage == stage_sustain) return; // nothing to do |
if (Stage == stage_sustain) return; // nothing to do |
36 |
|
|
37 |
for (int to_process_total = ModulationSystem::GetFragmentSize(); to_process_total;) { |
for (int to_process_total = Samples; to_process_total;) { |
38 |
int iSample = 0; |
int iSample = 0; |
39 |
switch (Stage) { |
switch (Stage) { |
40 |
case stage_attack: { |
case stage_attack: { |