64 LOGE(
"%s",
"Unsupported bitsPerSample");
80 float delta = 1.0 / frames;
95 for (
int j = 0;
j < frames;
j++) {
107 LOGI(
"faded out %d frames to volume %f",frames,
volume);
110 template <
typename T>
112 LOGI(
"fade in %d frames from volume %f",frames,
volume);
113 for (
int j = 0;
j < frames;
j++) {
142 int frames = size /
sizeof(
T) /
channels;
154 static_cast<float>(
steps -
j) /
static_cast<float>(
steps);
199 return f24.write(
src, size);
203 LOGE(
"bits_per_sample is 0");
287 if (
p_out==
nullptr)
return 0;
351 int frames = size /
sizeof(
T) /
channels;
#define LOGI(...)
Definition AudioLoggerIDF.h:28
#define LOGE(...)
Definition AudioLoggerIDF.h:30
virtual int availableForWrite()
Definition Arduino.h:128
virtual size_t write(const uint8_t *data, size_t len)
Definition Arduino.h:120
virtual size_t readBytes(uint8_t *data, size_t len)
Definition Arduino.h:140
virtual int available()
Definition Arduino.h:139