Skip to content

Commit

Permalink
Removed example again
Browse files Browse the repository at this point in the history
  • Loading branch information
HiFi-LoFi committed Mar 31, 2017
1 parent 32c442b commit f2cdeb0
Showing 1 changed file with 1 addition and 42 deletions.
43 changes: 1 addition & 42 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,45 +7,4 @@ audio data (e.g. for usage in real-time convolution reverbs etc.).
- Partitioned convolution algorithm (using uniform block sizes)
- Optional support for non-uniform block sizes (TwoStageFFTConvolver)
- No external dependencies (FFT already included)
- Optional optimization for SSE

## Example: FFTConvolver ##

// Some impulse response consisting of 12345 samples
const float* impulseResponse = ...;
const size_t impulseResponseSize = 12345;

// Setup the convolver object (block size: 128 samples)
// (typically, this is done in some initialization and not in the audio callback)
fftconvolver::FFTConvolver convolver;
convolver.init(128, impulseResponse, impulseResponseSize);

// Now consecutive audio chunks of arbitrary size can be convolved
// (typically, this is done in the audio callback)
convolver.process(audioIn, audioOut, audioLen);
.
.
.
convolver.process(audioIn, audioOut, audioLen);


## Example: TwoStageFFTConvolver ##

// Some impulse response consisting of 12345 samples
const float* impulseResponse = ...;
const size_t impulseResponseSize = 12345;

// Setup the convolver object
// (typically, this is done in some initialization and not in the audio callback)
fftconvolver::TwoStageFFTConvolver convolver;
const size_t headBlockSize = 64;
const size_t tailBlockSize = 1024;
convolver.init(headBlockSize, tailBlockSize, impulseResponse, impulseResponseSize);

// Now consecutive audio chunks of arbitrary size can be convolved
// (typically, this is done in the audio callback)
convolver.process(audioIn, audioOut, audioLen);
.
.
.
convolver.process(audioIn, audioOut, audioLen);
- Optional optimization for SSE (enabled by defining FFTCONVOLVER_USE_SSE)

0 comments on commit f2cdeb0

Please sign in to comment.