| 85 | } |
| 86 | |
| 87 | void updateSlide(Slide *slide, float *f, float *scale, int *maxDist, float *ratio) |
| 88 | { |
| 89 | float stretch = slide->getStretch(); |
| 90 | slide->step(); |
| 91 | if(stretch <= 1.0f) { |
| 92 | *f = resampleSincRes; |
| 93 | *scale = stretch; |
| 94 | *maxDist = lrintf(resampleSincSamples); |
| 95 | } else { |
| 96 | *f = resampleSincRes / stretch; |
| 97 | *scale = 1.0f; |
| 98 | *maxDist = lrintf(resampleSincSamples * stretch); |
| 99 | } |
| 100 | *ratio = stretch; |
| 101 | } |
| 102 | |
| 103 | long Resampler :: read(audio *audioOut, long samples) { return imp->read(audioOut,samples); } |
| 104 | long ResamplerImp :: read(audio *audioOut, long samples) |
no test coverage detected