Refactor FFT helpers (#5309)

* Do not check if unsigned int is negative

* Reduce scope of some local variables

* Use right types for iterators

* Check conditional returns first

* Remove unused functions

* Utilize a range-based for loop opportunity
This commit is contained in:
Hussam al-Homsi
2020-03-11 15:07:02 -04:00
committed by GitHub
parent 0196f31509
commit 85e0574138
2 changed files with 20 additions and 119 deletions

View File

@@ -103,16 +103,4 @@ int LMMS_EXPORT absspec(const fftwf_complex *complex_buffer, float *absspec_buff
int LMMS_EXPORT compressbands(const float * _absspec_buffer, float * _compressedband,
int _num_old, int _num_new, int _bottom, int _top);
int LMMS_EXPORT calc13octaveband31(float * _absspec_buffer, float * _subbands,
int _num_spec, float _max_frequency);
/** Compute power of finite time sequence.
* Take care num_values is length of timesignal[].
*
* @return power on success, else -1
*/
float LMMS_EXPORT signalpower(const float *timesignal, int num_values);
#endif