Skip to content

Commit 5f5b6e5

Browse files
committed
0.8.6 in library.properties
1 parent deb893f commit 5f5b6e5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=libhelix
2-
version=0.8.5
2+
version=0.8.6
33
author=Phil Schatzmann
44
maintainer= <[email protected]>
55
sentence=libhelix audio decoder for Arduino

src/MP3DecoderHelix.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ class MP3DecoderHelix : public CommonHelix {
149149
}
150150
#if defined(ARDUINO) || defined(HELIX_PRINT)
151151
int sampleSize = info.bitsPerSample / 8;
152-
out->write((uint8_t *)pcm_buffer.data(), info.outputSamps * sampleSize);
152+
int toWrite = info.outputSamps * sampleSize;
153+
int written = out->write((uint8_t *)pcm_buffer.data(), toWrite);
154+
// assume blocking write
155+
assert(written == toWrite);
153156
#endif
154157
}
155158
mp3FrameInfo = info;

0 commit comments

Comments
 (0)