3 #include "AudioTools/AudioCodecs/AudioCodecsBase.h"
4 #if defined(ARDUINO) && !defined(IS_MIN_DESKTOP)
33 bool begin() {
return true; }
37 size_t write(
const uint8_t *data,
size_t len) {
39 return pt_print->write((uint8_t*)data,len);
42 operator bool() {
return true; }
51 Print *pt_print=
nullptr;
72 virtual void setOutput(
Print &out_stream) {pt_print=&out_stream;}
74 bool begin() {
return true;}
78 size_t write(
const uint8_t *data,
size_t len) {
return pt_print->write((uint8_t*)data,len); }
80 operator bool() {
return true; }
82 const char *
mime() {
return "audio/pcm";}
86 Print *pt_print=
nullptr;
89 using PCMEncoder = CopyEncoder;
90 using PCMDecoder = CopyDecoder;