Use the appropriate type for this

This commit is contained in:
Chris Cannam
2013-05-15 10:35:30 +01:00
parent 8bbf6b8c0a
commit 97fb6da962
2 changed files with 4 additions and 1 deletions

View File

@@ -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);

View File

@@ -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;
}