| 52 | } |
| 53 | |
| 54 | float JumpBlender::Process(float sample, int samplesIn) |
| 55 | { |
| 56 | if (mBlendSample == JUMP_BLEND_SAMPLES) |
| 57 | mBlending = false; |
| 58 | |
| 59 | if (!mBlending) |
| 60 | return sample; |
| 61 | |
| 62 | float rampVal = mRamp.Value(gTime + samplesIn * gInvSampleRateMs); |
| 63 | return sample * (1 - rampVal) + mSamples[mBlendSample++] * rampVal; |
| 64 | } |