diff --git a/src/StretcherProcess.cpp b/src/StretcherProcess.cpp index 36b224a..801029a 100644 --- a/src/StretcherProcess.cpp +++ b/src/StretcherProcess.cpp @@ -930,7 +930,7 @@ RubberBandStretcher::Impl::formantShiftChunk(size_t channel) v_scale(dblbuf, factor, cutoff); - double *spare = (double *)alloca((hs + 1) * sizeof(double)); + process_t *spare = (process_t *)alloca((hs + 1) * sizeof(process_t)); cd.fft->forward(dblbuf, envelope, spare); v_exp(envelope, hs + 1); diff --git a/src/dsp/Resampler.cpp b/src/dsp/Resampler.cpp index 649abbc..7f1bb8a 100644 --- a/src/dsp/Resampler.cpp +++ b/src/dsp/Resampler.cpp @@ -993,6 +993,7 @@ D_Speex::resample(const float *const R__ *const R__ in, //!!! check err, respond appropriately + if (m_channels > 1) { v_deinterleave(out, m_iout, m_channels, outcount); } @@ -1023,6 +1024,8 @@ D_Speex::resampleInterleaved(const float *const R__ in, data_out, &outcount); +// std::cerr << "D_SPEEX: incount " << incount << " ratio " << ratio << " req " << lrintf(ceilf(incount * ratio)) << " final " << final << " output_frames_gen " << outcount << std::endl; + return outcount; }