mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
Strip trailing whitespace and fix other whitespace errors (e.g. space/tab mixing). Whitespace changes only.
Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red. I don't know the emacs equivalent... git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8c4ce1e2ce
commit
bb9cc45cd2
730 changed files with 14946 additions and 14948 deletions
|
|
@ -11,16 +11,16 @@ LinearInterpolation::interpolate (int channel, nframes_t nframes, Sample *input,
|
|||
{
|
||||
// index in the input buffers
|
||||
nframes_t i = 0;
|
||||
|
||||
|
||||
double acceleration;
|
||||
double distance = 0.0;
|
||||
|
||||
|
||||
if (_speed != _target_speed) {
|
||||
acceleration = _target_speed - _speed;
|
||||
} else {
|
||||
acceleration = 0.0;
|
||||
}
|
||||
|
||||
|
||||
distance = phase[channel];
|
||||
for (nframes_t outsample = 0; outsample < nframes; ++outsample) {
|
||||
i = floor(distance);
|
||||
|
|
@ -29,19 +29,19 @@ LinearInterpolation::interpolate (int channel, nframes_t nframes, Sample *input,
|
|||
fractional_phase_part -= 1.0;
|
||||
i++;
|
||||
}
|
||||
|
||||
|
||||
if (input && output) {
|
||||
// Linearly interpolate into the output buffer
|
||||
output[outsample] =
|
||||
output[outsample] =
|
||||
input[i] * (1.0f - fractional_phase_part) +
|
||||
input[i+1] * fractional_phase_part;
|
||||
}
|
||||
distance += _speed + acceleration;
|
||||
}
|
||||
|
||||
|
||||
i = floor(distance);
|
||||
phase[channel] = distance - floor(distance);
|
||||
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
|
|
@ -50,16 +50,16 @@ CubicInterpolation::interpolate (int channel, nframes_t nframes, Sample *input,
|
|||
{
|
||||
// index in the input buffers
|
||||
nframes_t i = 0;
|
||||
|
||||
|
||||
double acceleration;
|
||||
double distance = 0.0;
|
||||
|
||||
|
||||
if (_speed != _target_speed) {
|
||||
acceleration = _target_speed - _speed;
|
||||
} else {
|
||||
acceleration = 0.0;
|
||||
}
|
||||
|
||||
|
||||
distance = phase[channel];
|
||||
for (nframes_t outsample = 0; outsample < nframes; ++outsample) {
|
||||
i = floor(distance);
|
||||
|
|
@ -68,16 +68,16 @@ CubicInterpolation::interpolate (int channel, nframes_t nframes, Sample *input,
|
|||
fractional_phase_part -= 1.0;
|
||||
i++;
|
||||
}
|
||||
|
||||
|
||||
if (input && output) {
|
||||
// Cubically interpolate into the output buffer
|
||||
output[outsample] = cube_interp(fractional_phase_part, input[i-1], input[i], input[i+1], input[i+2]);
|
||||
}
|
||||
distance += _speed + acceleration;
|
||||
}
|
||||
|
||||
|
||||
i = floor(distance);
|
||||
phase[channel] = distance - floor(distance);
|
||||
|
||||
|
||||
return i;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue