From 040c3bd6f7ecd03368e8a557093c734d2b03ee62 Mon Sep 17 00:00:00 2001 From: pschatzmann Date: Fri, 22 Nov 2024 13:19:03 +0100 Subject: [PATCH] DecoderFloat correct write result --- src/AudioTools/AudioCodecs/CodecFloat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AudioTools/AudioCodecs/CodecFloat.h b/src/AudioTools/AudioCodecs/CodecFloat.h index 4feac33ea..9e4bf6db0 100644 --- a/src/AudioTools/AudioCodecs/CodecFloat.h +++ b/src/AudioTools/AudioCodecs/CodecFloat.h @@ -53,7 +53,7 @@ class DecoderFloat : public AudioDecoder { for (int j=0;jwrite((uint8_t*)buffer.data(), samples*sizeof(int16_t)); + return p_print->write((uint8_t*)buffer.data(), samples*sizeof(int16_t)) * 2; } virtual operator bool() override {