Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Typedefs | Functions
Buffer.h File Reference
#include "cinder/CinderAssert.h"
#include <vector>
#include <memory>
#include <cstdlib>
#include <algorithm>
Include dependency graph for Buffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cinder::audio::BufferBaseT< T >
 Base class for the various Buffer classes. The template parameter T defined the sample type (precision). More...
 
class  cinder::audio::BufferT< T >
 Audio buffer that stores its channels of type T contiguously (ie. the first sample of channel 1 is directly after the last sample of channel 0). Bounds checking is accomplished with assertions that are disabled in release mode by default. More...
 
class  cinder::audio::BufferInterleavedT< T >
 Audio buffer that stores its channels of type T in one interleaved array (ie. the first sample of channel 1 is directly after the first sample of channel 0). More...
 
class  cinder::audio::BufferSpectralT< T >
 A buffer that contains frequency domain audio data. More...
 
class  cinder::audio::BufferDynamicT< BufferTT >
 A resizable BufferT. The internally allocated buffer will grow as needed, but it will not shrink unless shrinkToFit() is called. TODO: enable move operator to convert BufferT to this. More...
 
struct  cinder::audio::FreeDeleter< T >
 Simple functor wrapping free(), suitable for unique_ptr's that allocate memory with malloc, calloc and realloc. More...
 

Namespaces

 cinder
 
 cinder::audio
 

Typedefs

typedef std::unique_ptr< float,
FreeDeleter< float > > 
cinder::audio::AlignedArrayPtr
 
typedef std::unique_ptr
< double, FreeDeleter< double > > 
cinder::audio::AlignedArrayPtrd
 
typedef BufferT< float > cinder::audio::Buffer
 
typedef BufferInterleavedT< float > cinder::audio::BufferInterleaved
 
typedef BufferSpectralT< float > cinder::audio::BufferSpectral
 
typedef BufferDynamicT< Buffer > cinder::audio::BufferDynamic
 
typedef BufferDynamicT
< BufferInterleaved > 
cinder::audio::BufferDynamicInterleaved
 
typedef BufferDynamicT
< BufferSpectral > 
cinder::audio::BufferDynamicSpectral
 
typedef std::shared_ptr< Buffer > cinder::audio::BufferRef
 
typedef std::shared_ptr
< BufferInterleaved > 
cinder::audio::BufferInterleavedRef
 
typedef std::shared_ptr
< BufferSpectral > 
cinder::audio::BufferSpectralRef
 
typedef std::shared_ptr
< BufferDynamic > 
cinder::audio::BufferDynamicRef
 
typedef std::shared_ptr
< BufferDynamicInterleaved > 
cinder::audio::BufferDynamicInterleavedRef
 
typedef std::shared_ptr
< BufferDynamicSpectral > 
cinder::audio::BufferDynamicSpectralRef
 

Functions

template<typename T >
std::unique_ptr< T,
FreeDeleter< T > > 
cinder::audio::makeAlignedArray (size_t size, size_t alignment=16)
 Returns an array of size elements of type T, aligned by alignment. More...