ofxPDSP
pdsp::BufferShell Class Reference

A buffer of memory-aligned floats that resize itself when the units are prepared. More...

#include <BufferShell.h>

Inheritance diagram for pdsp::BufferShell:
pdsp::Preparable

Public Member Functions

 BufferShell (const BufferShell &other)
 
BufferShelloperator= (const BufferShell &other)
 
void setOversampleLevel (int overSample)
 sets the oversample factor that multiply the buffer size More...
 

Public Attributes

float * buffer
 this is the buffer of floats
 

Protected Member Functions

void prepareToPlay (int expectedBufferSize, double sampleRate) override
 
void releaseResources () override
 

Additional Inherited Members

- Static Public Member Functions inherited from pdsp::Preparable
static double getGlobalSampleRate ()
 

Detailed Description

A buffer of memory-aligned floats that resize itself when the units are prepared.

This is a class that contain a buffer of memory-aligned floats that is prepared with all the units and nodes and resize itself according to the expectedBufferSize and an oversample factor.

Member Function Documentation

◆ setOversampleLevel()

void pdsp::BufferShell::setOversampleLevel ( int  overSample)

sets the oversample factor that multiply the buffer size

Parameters
[in]newOversampleLevelthe oversample level, 2 for 2x, 4 for 4x, etc etc

The documentation for this class was generated from the following files: