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 88c546e commit 789b863Copy full SHA for 789b863
src/AudioTools/AudioOutput.h
@@ -444,6 +444,23 @@ class OutputMixer : public Print {
444
size_bytes = size;
445
}
446
447
+ /// Sets the Output Stream index
448
+ void setIndex(int idx){
449
+ stream_idx = idx;
450
+ }
451
+
452
+ size_t writeSilence(int bytes) override {
453
+ if (bytes == 0) return 0;
454
+ byte silence[bytes] = {0};
455
+ return write(stream_idx, silence, bytes);
456
457
458
+ size_t writeSilence(int idx, int bytes){
459
460
461
+ return write(idx, silence, bytes);
462
463
464
protected:
465
Vector<RingBuffer<T> *> buffers{0};
466
Vector<T> output{0};
0 commit comments