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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user