Public Member Functions | List of all members
BlockDivider< SkipAmount, FloatType > Class Template Reference

This class divides a block into fixed chunks of data. More...

Public Member Functions

int cutBlock (int &loopCounter, bool &newBlock, FloatType *pointerToCheck)
 checks the loop counter and returns the number of samples that have to be calculated manually. More...
 

Detailed Description

template<int SkipAmount, typename FloatType = float>
class hise::BlockDivider< SkipAmount, FloatType >

This class divides a block into fixed chunks of data.

It can be used to divide a block of audio data into smaller chunks and takes care of the edge cases when using SSE processing.

Member Function Documentation

int cutBlock ( int &  loopCounter,
bool &  newBlock,
FloatType *  pointerToCheck 
)
inline

checks the loop counter and returns the number of samples that have to be calculated manually.

If it returns zero, you can use the entire blocksize specified by the SkipAmount. It also guarantees SSE alignment so you can write a SSE loop without edge case handling.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.