5#if defined(ARDUINO) && !defined(IS_MIN_DESKTOP)
33 const char *
mime()
override {
return "audio/pcm"; }
49 for (
int i = 0; i < len /
sizeof(
int16_t); i++) {
50 data16[i] =
ntohs(data16[i]);
56 for (
int i = 0; i < len /
sizeof(
int32_t); i++) {
57 data32[i] =
ntohl(data32[i]);
61 LOGE(
"bits_per_sample not supported: %d",
68 operator bool() {
return true; }
113 for (
int i = 0; i < len /
sizeof(
int16_t); i++) {
114 data16[i] =
htons(data16[i]);
120 for (
int i = 0; i < len /
sizeof(
int32_t); i++) {
121 data32[i] =
htonl(data32[i]);
125 LOGE(
"bits_per_sample not supported: %d",
132 operator bool() {
return true; }
134 const char *
mime() {
return "audio/pcm"; }
#define TRACED()
Definition AudioLoggerIDF.h:31
#define LOGE(...)
Definition AudioLoggerIDF.h:30
#define htons(x)
Definition Net.h:15
#define ntohl(x)
Definition Net.h:16
#define ntohs(x)
Definition Net.h:17
#define htonl(x)
Definition Net.h:14
virtual size_t write(const uint8_t *data, size_t len)
Definition Arduino.h:120