diff options
author | Robin Gareus <robin@gareus.org> | 2017-10-31 22:01:04 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-10-31 22:01:04 +0100 |
commit | f5c5adee6aa82514500366f75f1f53aaf317c064 (patch) | |
tree | 1a9ba058a7404ba3b5f8d58196053db5f6f3eefb /libs/ardour/interpolation.cc | |
parent | 79b1275b7c293ffa673e13c9e1affbc8deeed0a5 (diff) |
Interpolation phase[] is initially empty
Diffstat (limited to 'libs/ardour/interpolation.cc')
-rw-r--r-- | libs/ardour/interpolation.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/interpolation.cc b/libs/ardour/interpolation.cc index c29a62232b..3ba9253dee 100644 --- a/libs/ardour/interpolation.cc +++ b/libs/ardour/interpolation.cc @@ -41,6 +41,7 @@ CubicInterpolation::interpolate (int channel, samplecnt_t input_samples, Sample assert (output_samples > 0); assert (input); assert (output); + assert (phase.size () > channel); _speed = fabs (_speed); @@ -221,5 +222,6 @@ CubicInterpolation::reset () samplecnt_t CubicInterpolation::distance (samplecnt_t nsamples) { + assert (phase.size () > 0); return floor (floor (phase[0]) + (_speed * nsamples)); } |