Audio buffer for debug output.
More...
#include <klang.h>
Definition at line 4273 of file klang.h.
◆ Content
| Values |
|---|
| Empty | 0 | |
| Notes | 1 | |
| Effect | 2 | |
| Synth | 3 | |
Definition at line 4286 of file klang.h.
4286 {
enum klang::Debug::Buffer::Content content
◆ Buffer()
| klang::Debug::Buffer::Buffer |
( |
| ) |
|
|
inline |
Definition at line 4284 of file klang.h.
static THREAD_LOCAL Buffer buffer
◆ clear() [1/2]
| void klang::buffer::clear |
( |
| ) |
|
|
inline |
◆ clear() [2/2]
| void klang::buffer::clear |
( |
int | size | ) |
|
|
inline |
◆ get()
| const float * klang::Debug::Buffer::get |
( |
| ) |
|
|
inline |
Definition at line 4306 of file klang.h.
4306 {
4307#if HAS_KLANG_DEBUG
4311 }
4312 else {
4313 return nullptr;
4314 }
4315#else
4316 return nullptr;
4317#endif
4318 }
◆ operator const signal &()
| klang::Debug::Buffer::operator const signal & |
( |
| ) |
const |
|
inline |
Definition at line 4351 of file klang.h.
4351 {
4352#if HAS_KLANG_DEBUG
4354#else
4355 static const signal silence = 0;
4356 return silence;
4357#endif
4358 }
◆ operator++()
| signal & klang::Debug::Buffer::operator++ |
( |
int | | ) |
|
|
inline |
◆ operator+=() [1/2]
| Buffer & klang::Debug::Buffer::operator+= |
( |
const signal | in | ) |
|
|
inline |
Definition at line 4320 of file klang.h.
4320 {
4321#if HAS_KLANG_DEBUG
4324 return *this;
4325#else
4326 return *this;
4327#endif
4328 }
signal & operator+=(const signal &in)
◆ operator+=() [2/2]
template<typename TYPE >
| Buffer & klang::Debug::Buffer::operator+= |
( |
TYPE & | in | ) |
|
|
inline |
Definition at line 4331 of file klang.h.
4331 {
4332#if HAS_KLANG_DEBUG
4335 return *this;
4336#else
4337 return *this;
4338#endif
4339 }
◆ operator>>()
| signal & klang::Debug::Buffer::operator>> |
( |
signal & | destination | ) |
const |
|
inline |
Definition at line 4341 of file klang.h.
4341 {
4342#if HAS_KLANG_DEBUG
4343 destination << *
ptr;
4344 return destination;
4345#else
4346 destination = 0;
4347 return destination;
4348#endif
4349 }
◆ rewind()
| void klang::buffer::rewind |
( |
int | offset = 0 | ) |
|
|
inline |
Definition at line 2665 of file klang.h.
2665 {
2666#ifdef _MSC_VER
2667 _controlfp_s(nullptr, _DN_FLUSH, _MCW_DN);
2668#endif
2671 }
◆ active
| bool klang::Debug::Buffer::active = false |
◆ content
◆ used
| int klang::Debug::Buffer::used = 0 |