unsigned DrawnWaveform:: next_good_size( unsigned current_valid_samples_per_chunk, float /*sample_rate*/ ) const { if (current_valid_samples_per_chunk<drawWaveform_BLOCK_SIZE) return drawWaveform_BLOCK_SIZE; return spo2g(align_up(current_valid_samples_per_chunk, (unsigned) drawWaveform_BLOCK_SIZE)/drawWaveform_BLOCK_SIZE)*drawWaveform_BLOCK_SIZE; }
unsigned FftImplementation:: sChunkSizeG(unsigned x, unsigned) { return spo2g(x); }