87template <
typename T =
int16_t>
143 LOGE(
"buffer has no memory");
158 LOGE(
"buffer has no memory");
204template <
typename T =
int16_t>
249 bool peek(
T &result) {
return false; }
258 LOGE(
"buffer has no memory");
374template <
typename T =
int16_t>
426 if (
buffer.size() == 0)
return false;
551 LOGD(
"handleReadWriteOverrun write_pos=%d read_pos_int=%d",
write_pos,
577 LOGD(
"handleReadWriteOverrun -> read_pos pos=%d pos_float=%f", pos,
584 LOGW(
"phase allign failed: maybe the buffer is too small")
614template <
typename T,
class BufferT>
670 LOGD(
"PitchShiftOutput::write %d bytes", (
int)len);
676 int sample_count = len /
sizeof(
T);
678 for (
int j = 0;
j < sample_count;
j += channels) {
680 for (
int ch = 0;
ch < channels;
ch++) {
681 value += p_in[
j +
ch];
690 for (
int ch = 0;
ch < channels;
ch++) {
#define LOGW(...)
Definition AudioLoggerIDF.h:29
#define TRACED()
Definition AudioLoggerIDF.h:31
#define LOGD(...)
Definition AudioLoggerIDF.h:27
#define LOGE(...)
Definition AudioLoggerIDF.h:30
#define assert(T)
Definition avr.h:10