Пример #1
0
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;
}
Пример #2
0
unsigned FftImplementation::
        sChunkSizeG(unsigned x, unsigned)
{
    return spo2g(x);
}