52 const char*
mime()
override {
return "audio/g729"; }
58 "G.729 encoder input is fixed to 8000 Hz, mono, 16-bit PCM "
59 "(requested: %d Hz, %d ch, %d bit)",
75 LOGE(
"initBcg729DecoderChannel");
100 LOGD(
"write: %d",
static_cast<int>(len));
107 LOGE(
"output not set");
120 for (
size_t j = 0; j < len; ++j) {
146 LOGW(
"unsupported G729 frame size: %d",
static_cast<int>(frame_len));
153 static_cast<uint8_t>(frame_len),
201 "G.729 encoder input is fixed to 8000 Hz, mono, 16-bit PCM "
202 "(requested: %d Hz, %d ch, %d bit)",
215 LOGE(
"initBcg729EncoderChannel");
236 const char*
mime()
override {
return "audio/g729"; }
243 LOGD(
"write: %d",
static_cast<int>(len));
250 LOGE(
"output not set");
254 for (
size_t j = 0; j < len; ++j) {
280 LOGE(
"Encoder: result buffer too small: %d -> %d",
282 static_cast<int>(result_len));
283 }
else if (result_len > 0) {
#define LOGW(...)
Definition AudioLoggerIDF.h:29
#define TRACEI()
Definition AudioLoggerIDF.h:32
#define LOGD(...)
Definition AudioLoggerIDF.h:27
#define LOGE(...)
Definition AudioLoggerIDF.h:30
virtual size_t write(const uint8_t *data, size_t len)
Definition Arduino.h:120