Use the appropriate type for this
This commit is contained in:
@@ -930,7 +930,7 @@ RubberBandStretcher::Impl::formantShiftChunk(size_t channel)
|
|||||||
|
|
||||||
v_scale(dblbuf, factor, cutoff);
|
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);
|
cd.fft->forward(dblbuf, envelope, spare);
|
||||||
|
|
||||||
v_exp(envelope, hs + 1);
|
v_exp(envelope, hs + 1);
|
||||||
|
|||||||
@@ -993,6 +993,7 @@ D_Speex::resample(const float *const R__ *const R__ in,
|
|||||||
|
|
||||||
//!!! check err, respond appropriately
|
//!!! check err, respond appropriately
|
||||||
|
|
||||||
|
|
||||||
if (m_channels > 1) {
|
if (m_channels > 1) {
|
||||||
v_deinterleave(out, m_iout, m_channels, outcount);
|
v_deinterleave(out, m_iout, m_channels, outcount);
|
||||||
}
|
}
|
||||||
@@ -1023,6 +1024,8 @@ D_Speex::resampleInterleaved(const float *const R__ in,
|
|||||||
data_out,
|
data_out,
|
||||||
&outcount);
|
&outcount);
|
||||||
|
|
||||||
|
// std::cerr << "D_SPEEX: incount " << incount << " ratio " << ratio << " req " << lrintf(ceilf(incount * ratio)) << " final " << final << " output_frames_gen " << outcount << std::endl;
|
||||||
|
|
||||||
return outcount;
|
return outcount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user