MCPcopy Create free account
hub / github.com/audacity/audacity / updateSlide

Function updateSlide

lib-src/libsbsms/src/resample.cpp:87–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void 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
103long Resampler :: read(audio *audioOut, long samples) { return imp->read(audioOut,samples); }
104long ResamplerImp :: read(audio *audioOut, long samples)

Callers 1

readMethod · 0.85

Calls 3

lrintfFunction · 0.70
getStretchMethod · 0.45
stepMethod · 0.45

Tested by

no test coverage detected