LMMS
Loading...
Searching...
No Matches
buffer.h File Reference

Go to the source code of this file.

Classes

struct  dsp::sample_traits< T >
struct  dsp::sample_traits< stereo_sample< T > >
class  dsp::fixed_size_buffer< N, T >
class  dsp::mem_fixed_size_buffer< N, T >
class  dsp::auto_buffer< N, T >
class  dsp::dynamic_buffer< T >
struct  dsp::buffer_traits< T >
struct  dsp::buffer_traits< fixed_size_buffer< N, T > >
 this class template defines some basic position operations for fixed_size_buffers More...
class  dsp::circular_buffer< B >
 this is useless for now (and untested too) More...
class  dsp::mono_auto_buffer< N, T >
 this is useless for now More...
class  dsp::stereo_auto_buffer< N, T >
 this is useless for now More...

Namespaces

namespace  dsp

Functions

template<int N>
int dsp::wrap_around (int a)
 decrease by N if >= N (useful for circular buffers)
template<>
int dsp::wrap_around< 2 > (int a)
template<>
int dsp::wrap_around< 4 > (int a)
template<>
int dsp::wrap_around< 8 > (int a)
template<>
int dsp::wrap_around< 16 > (int a)
template<>
int dsp::wrap_around< 32 > (int a)
template<>
int dsp::wrap_around< 64 > (int a)
template<>
int dsp::wrap_around< 128 > (int a)
template<>
int dsp::wrap_around< 256 > (int a)
template<>
int dsp::wrap_around< 512 > (int a)
template<>
int dsp::wrap_around< 1024 > (int a)
template<>
int dsp::wrap_around< 2048 > (int a)
template<>
int dsp::wrap_around< 4096 > (int a)
template<>
int dsp::wrap_around< 8192 > (int a)
template<>
int dsp::wrap_around< 16384 > (int a)
template<>
int dsp::wrap_around< 32768 > (int a)
template<>
int dsp::wrap_around< 65536 > (int a)
template<class Buf, class T>
void dsp::fill (Buf &buf, T value)
template<class T>
void dsp::fill (T *data, int size, T value)
template<class T, class U>
void dsp::copy (T *dest, U *src, int size, T scale=1, T add=0)
template<class T, class U>
void dsp::copy_buf (T &dest_buf, const U &src_buf, T scale=1, T add=0)