Klang C++
Language Reference (draft)
|
Audio buffer (mono) More...
#include <klang.h>
Public Types | |
typedef signal | signal |
Public Member Functions | |
buffer (float *buffer, int size) | |
buffer (float *buffer, int size, float initial) | |
buffer (int size, float initial=0) | |
virtual | ~buffer () |
void | rewind (int offset=0) |
void | clear () |
void | clear (int size) |
int | offset () const |
void | set (float value=0) |
signal & | operator[] (int offset) |
signal | operator[] (float offset) |
signal | operator[] (float offset) const |
const signal & | operator[] (int index) const |
operator signal & () | |
operator const signal & () const | |
operator double () const | |
bool | finished () const |
signal & | operator++ (int) |
signal & | operator= (const signal &in) |
signal & | operator+= (const signal &in) |
signal & | operator*= (const signal &in) |
buffer & | operator= (const buffer &in) |
buffer & | operator<< (const signal &in) |
const float * | data () const |
Public Attributes | |
const int | size |
Protected Attributes | |
const unsigned int | mask = 0xFFFFFFFF |
const bool | owned = false |
float * | samples |
signal * | ptr |
signal * | end |
|
inline |
|
inline |
|
inline |
Definition at line 1222 of file klang.h.
References capacity(), mask, owned, rewind(), samples, set(), and size.
Referenced by klang::Debug::Buffer::Buffer(), klang::Wavetable::Wavetable(), and klang::Wavetable::Wavetable().
|
inlinevirtual |
|
inlineconstexprprotected |
Definition at line 1190 of file klang.h.
Referenced by buffer().
|
inline |
|
inline |
Definition at line 1245 of file klang.h.
Referenced by klang::Stereo::buffer::clear().
|
inline |
Definition at line 1327 of file klang.h.
References samples.
Referenced by klang::Debug::Buffer::get().
|
inline |
Definition at line 1294 of file klang.h.
Referenced by klang::Stereo::buffer::finished(), klang::Effect::process(), and klang::Note::process().
|
inline |
|
inlineexplicit |
|
inline |
Definition at line 1311 of file klang.h.
References klang::signal::operator*=(), and ptr.
Referenced by klang::Stereo::buffer::operator*=(), and klang::Stereo::buffer::operator*=().
|
inline |
Definition at line 1298 of file klang.h.
References ptr.
Referenced by klang::Stereo::buffer::operator++(), klang::Effect::process(), klang::Note::process(), and klang::Stereo::Effect::process().
Definition at line 1306 of file klang.h.
References klang::signal::operator+=(), and ptr.
Referenced by klang::Debug::Buffer::operator+=(), klang::Stereo::buffer::operator+=(), klang::Stereo::buffer::operator+=(), and klang::Stereo::buffer::operator+=().
Definition at line 1302 of file klang.h.
References ptr.
Referenced by klang::Stereo::buffer::operator=(), klang::Stereo::buffer::operator=(), and klang::Stereo::buffer::operator=().
|
inline |
Definition at line 1264 of file klang.h.
References operator[]().
Referenced by klang::Wavetable::process().
|
inline |
|
inline |
|
inline |
Definition at line 1260 of file klang.h.
Referenced by klang::Wavetable::operator=(), klang::Stereo::buffer::operator[](), klang::Stereo::buffer::operator[](), and klang::Wavetable::operator[]().
|
inline |
|
inline |
|
protected |
Definition at line 1206 of file klang.h.
Referenced by finished(), and rewind().
|
protected |
Definition at line 1202 of file klang.h.
Referenced by buffer(), and operator[]().
|
protected |
|
protected |
Definition at line 1205 of file klang.h.
Referenced by finished(), offset(), operator const signal &(), klang::Debug::Buffer::operator const signal &(), operator double(), operator signal &(), operator*=(), operator++(), operator+=(), operator<<(), operator=(), klang::Debug::Buffer::operator>>(), and rewind().
|
protected |
Definition at line 1204 of file klang.h.
Referenced by buffer(), buffer(), buffer(), ~buffer(), clear(), clear(), data(), offset(), operator=(), operator[](), operator[](), operator[](), rewind(), and set().