2 |
* * |
* * |
3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2011 Grigor Iliev * |
* Copyright (C) 2011 - 2012 Grigor Iliev * |
6 |
* * |
* * |
7 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
8 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
54 |
pVoice->pRegion->GetEG1Decay(pVoice->pPresetRegion), |
pVoice->pRegion->GetEG1Decay(pVoice->pPresetRegion), |
55 |
sustain, |
sustain, |
56 |
pVoice->pRegion->GetEG1Release(pVoice->pPresetRegion), |
pVoice->pRegion->GetEG1Release(pVoice->pPresetRegion), |
57 |
pVoice->GetSampleRate() / CONFIG_DEFAULT_SUBFRAGMENT_SIZE |
pVoice->GetSampleRate() / CONFIG_DEFAULT_SUBFRAGMENT_SIZE, |
58 |
|
false |
59 |
); |
); |
60 |
} |
} |
61 |
|
|
104 |
pVoice->pRegion->GetEG2Decay(pVoice->pPresetRegion), |
pVoice->pRegion->GetEG2Decay(pVoice->pPresetRegion), |
105 |
uint(1000 - pVoice->pRegion->GetEG2Sustain(pVoice->pPresetRegion)), |
uint(1000 - pVoice->pRegion->GetEG2Sustain(pVoice->pPresetRegion)), |
106 |
pVoice->pRegion->GetEG2Release(pVoice->pPresetRegion), |
pVoice->pRegion->GetEG2Release(pVoice->pPresetRegion), |
107 |
pVoice->GetSampleRate() / CONFIG_DEFAULT_SUBFRAGMENT_SIZE |
pVoice->GetSampleRate() / CONFIG_DEFAULT_SUBFRAGMENT_SIZE, |
108 |
|
true |
109 |
); |
); |
110 |
} |
} |
111 |
|
|