131 |
if (active()) { |
if (active()) { |
132 |
increment(1); |
increment(1); |
133 |
if (!toStageEndLeft()) update(EG::event_stage_end, pVoice->GetSampleRate() / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
if (!toStageEndLeft()) update(EG::event_stage_end, pVoice->GetSampleRate() / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
134 |
} |
} |
135 |
} |
} |
136 |
|
|
137 |
|
|
188 |
} |
} |
189 |
|
|
190 |
|
|
191 |
EndpointUnit::EndpointUnit(SF2SignalUnitRack* rack): EndpointSignalUnit(rack), pVoice(rack->pVoice) { |
EndpointUnit::EndpointUnit(SF2SignalUnitRack* rack): EndpointSignalUnit(rack) { |
192 |
|
|
193 |
} |
} |
194 |
|
|
210 |
} |
} |
211 |
|
|
212 |
bool EndpointUnit::Active() { |
bool EndpointUnit::Active() { |
|
if (Params.size() < 1) return false; |
|
213 |
return prmVolEg->pUnit->Active(); // volEGUnit |
return prmVolEg->pUnit->Active(); // volEGUnit |
214 |
} |
} |
215 |
|
|
244 |
} |
} |
245 |
|
|
246 |
SF2SignalUnitRack::SF2SignalUnitRack(Voice* voice) |
SF2SignalUnitRack::SF2SignalUnitRack(Voice* voice) |
247 |
: pVoice(voice), suVolEG(this), suModEG(this), suModLfo(this), suVibLfo(this), suEndpoint(this) { |
: SignalUnitRack(MaxUnitCount), pVoice(voice), suVolEG(this), suModEG(this), suModLfo(this), suVibLfo(this), suEndpoint(this) { |
248 |
|
|
249 |
suVolEG.pVoice = suModEG.pVoice = suModLfo.pVoice = suVibLfo.pVoice = suEndpoint.pVoice = voice; |
suVolEG.pVoice = suModEG.pVoice = suModLfo.pVoice = suVibLfo.pVoice = suEndpoint.pVoice = voice; |
250 |
Units.add(&suVolEG); |
Units.add(&suVolEG); |
280 |
return static_cast<EndpointSignalUnit*> (&suEndpoint); |
return static_cast<EndpointSignalUnit*> (&suEndpoint); |
281 |
} |
} |
282 |
|
|
283 |
|
void SF2SignalUnitRack::EnterFadeOutStage() { |
284 |
|
suVolEG.enterFadeOutStage(); |
285 |
|
} |
286 |
|
|
287 |
}} // namespace LinuxSampler::sf2 |
}} // namespace LinuxSampler::sf2 |