minor callback cleanup

This commit is contained in:
DataHoarder 2022-01-31 08:47:08 +01:00
parent 8946208378
commit 2b7ccf50d6

View file

@ -93,7 +93,7 @@ private:
int64_t st1 = t_in - latency + audio_block_length;
gaborator::process([&](int band, int64_t audioSampleIndex, std::complex<float>& coef) {
gabor_process_entry(band, int(audioSampleIndex), coef, callback, callback_data);
gabor_process_entry(band, int(audioSampleIndex), coef);
}, min_band, INT_MAX, st0, st1, coefs);
@ -110,7 +110,7 @@ private:
//flush all till latency spot
gaborator::process([&](int band, int64_t audioSampleIndex, std::complex<float>& coef) {
gabor_process_entry(band, int(audioSampleIndex), coef, callback, callback_data);
gabor_process_entry(band, int(audioSampleIndex), coef);
}, min_band, INT_MAX, st0, st1, coefs);
//flush remaining
@ -125,7 +125,7 @@ private:
}
}
inline void gabor_process_entry(int band, int sampleIndex, std::complex<float>& coef, gaborator_transform_callback callback, uintptr_t callback_data) {
inline void gabor_process_entry(int band, int sampleIndex, std::complex<float>& coef) {
int coefficientIndex = sampleIndex / frequencyBinTimeStepSize;
int bandIndex = band - firstBandCache;