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 1ac269f commit 0091d27Copy full SHA for 0091d27
src/AudioTools/CoreAudio/AudioStreams.h
@@ -281,10 +281,16 @@ class MemoryStream : public AudioStream {
281
return buffer != nullptr;
282
}
283
284
+ /// Provides access to the data array
285
virtual uint8_t* data(){
286
return buffer;
287
288
289
+ /// update the write_pos (e.g. when we used data() to update the array)
290
+ virtual void setAvailable(size_t len) {
291
+ this->write_pos = len;
292
+ }
293
+
294
/// Callback which is executed when we rewind (in loop mode) to the beginning
295
void setRewindCallback(void (*cb)()){
296
this->rewind = cb;
0 commit comments