unsigned DrawnWaveform:: prev_good_size( unsigned current_valid_samples_per_chunk, float /*sample_rate*/ ) const { if (current_valid_samples_per_chunk<2*drawWaveform_BLOCK_SIZE) return drawWaveform_BLOCK_SIZE; return lpo2s(align_up(current_valid_samples_per_chunk, (unsigned) drawWaveform_BLOCK_SIZE)/drawWaveform_BLOCK_SIZE)*drawWaveform_BLOCK_SIZE; }
unsigned FftImplementation:: lChunkSizeS(unsigned x, unsigned) { return lpo2s(x); }