Skip to content

Commit

Permalink
DecoderFloat correct write result
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Nov 22, 2024
1 parent ce635a6 commit 040c3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AudioTools/AudioCodecs/CodecFloat.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class DecoderFloat : public AudioDecoder {
for (int j=0;j<samples;j++){
buffer[j] = p_float[j]*32767;
}
return p_print->write((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 {
Expand Down

0 comments on commit 040c3bd

Please sign in to comment.