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 fce9def commit 88f42a2Copy full SHA for 88f42a2
src/AudioTools/Sandbox/DynamicMultiBuffer.h
@@ -396,6 +396,23 @@ class DynamicMultiBuffer : public BaseBuffer<T> {
396
return component_size_;
397
}
398
399
+ /**
400
+ * @brief (Re)sets the read pos to the start
401
+ */
402
+ bool begin() {
403
+ read_pos = 0;
404
+ return true;
405
+ }
406
+
407
408
+ * @brief (Re)sets the read pos to the indicated position
409
410
+ bool begin(int pos) {
411
+ if (pos > write_pos) return false;
412
+ read_pos = pos;
413
414
415
416
protected:
417
Vector<BufferType<T>*> buffer_components; // Collection of buffer components
418
size_t component_size_ = 0; // Size of each component in elements
0 commit comments