projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clean up debugging
[ardour.git]
/
libs
/
ardour
/
interpolation.cc
diff --git
a/libs/ardour/interpolation.cc
b/libs/ardour/interpolation.cc
index 1393d8aae81e659c1e4c87b9954307e44c5ce8b3..0a9bbc3a7d731a629433bd3ba97ac2f57ec46d09 100644
(file)
--- a/
libs/ardour/interpolation.cc
+++ b/
libs/ardour/interpolation.cc
@@
-6,11
+6,11
@@
using namespace ARDOUR;
using namespace ARDOUR;
-
nframes
_t
-LinearInterpolation::interpolate (int channel,
nframes
_t nframes, Sample *input, Sample *output)
+
framecnt
_t
+LinearInterpolation::interpolate (int channel,
framecnt
_t nframes, Sample *input, Sample *output)
{
// index in the input buffers
{
// index in the input buffers
-
nframes
_t i = 0;
+
framecnt
_t i = 0;
double acceleration;
double distance = 0.0;
double acceleration;
double distance = 0.0;
@@
-22,7
+22,7
@@
LinearInterpolation::interpolate (int channel, nframes_t nframes, Sample *input,
}
distance = phase[channel];
}
distance = phase[channel];
- for (
nframes
_t outsample = 0; outsample < nframes; ++outsample) {
+ for (
framecnt
_t outsample = 0; outsample < nframes; ++outsample) {
i = floor(distance);
Sample fractional_phase_part = distance - i;
if (fractional_phase_part >= 1.0) {
i = floor(distance);
Sample fractional_phase_part = distance - i;
if (fractional_phase_part >= 1.0) {
@@
-45,11
+45,11
@@
LinearInterpolation::interpolate (int channel, nframes_t nframes, Sample *input,
return i;
}
return i;
}
-
nframes
_t
-CubicInterpolation::interpolate (int channel,
nframes
_t nframes, Sample *input, Sample *output)
+
framecnt
_t
+CubicInterpolation::interpolate (int channel,
framecnt
_t nframes, Sample *input, Sample *output)
{
// index in the input buffers
{
// index in the input buffers
-
nframes
_t i = 0;
+
framecnt
_t i = 0;
double acceleration;
double distance = 0.0;
double acceleration;
double distance = 0.0;
@@
-87,7
+87,7
@@
CubicInterpolation::interpolate (int channel, nframes_t nframes, Sample *input,
inm1 = input[i-1];
}
inm1 = input[i-1];
}
- for (
nframes
_t outsample = 0; outsample < nframes; ++outsample) {
+ for (
framecnt
_t outsample = 0; outsample < nframes; ++outsample) {
float f = floor (distance);
float fractional_phase_part = distance - f;
float f = floor (distance);
float fractional_phase_part = distance - f;
@@
-124,7
+124,7
@@
CubicInterpolation::interpolate (int channel, nframes_t nframes, Sample *input,
/* not sure that this is ever utilized - it implies that one of the input/output buffers is missing */
/* not sure that this is ever utilized - it implies that one of the input/output buffers is missing */
- for (
nframes
_t outsample = 0; outsample < nframes; ++outsample) {
+ for (
framecnt
_t outsample = 0; outsample < nframes; ++outsample) {
distance += _speed + acceleration;
}
}
distance += _speed + acceleration;
}
}