We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8497cd commit 966e18cCopy full SHA for 966e18c
src/AudioTools/AudioCodecs/AudioCodecsBase.h
@@ -196,6 +196,15 @@ class StreamingDecoder : public AudioInfoSource {
196
/// Process a single read operation - to be called in the loop
197
virtual bool copy() = 0;
198
199
+ /// Process all data
200
+ bool copyAll() {
201
+ bool result = false;
202
+ while (copy()) {
203
+ result = true;
204
+ }
205
+ return result;
206
207
+
208
protected:
209
virtual size_t readBytes(uint8_t *data, size_t len) = 0;
210
Print *p_print = nullptr;
0 commit comments