File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,11 @@ void flush()
84
84
~~~~~~~~~~~~
85
85
Waits until all the I2S buffers have been output.
86
86
87
+ void getOverUnderflow()
88
+ ~~~~~~~~~~~~~~~~~~~~~~~
89
+ Returns a flag indicating if the I2S system ran our of data to send on output,
90
+ or had to throw away data on input.
91
+
87
92
size_t write(uint8_t/int8_t/int16_t/int32_t)
88
93
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
89
94
Writes a single sample of ``bitsPerSample `` to the buffer. It is up to the
Original file line number Diff line number Diff line change @@ -54,6 +54,15 @@ class I2S : public Stream {
54
54
virtual size_t write (const uint8_t *buffer, size_t size) override ;
55
55
virtual int availableForWrite () override ;
56
56
57
+ // From the AR
58
+ bool getOverUnderflow () {
59
+ if (!_running) {
60
+ return false ;
61
+ } else {
62
+ return _arb->getOverUnderflow ();
63
+ }
64
+ }
65
+
57
66
// Try and make I2S::write() do what makes sense, namely write
58
67
// one sample (L or R) at the I2S configured bit width
59
68
virtual size_t write (uint8_t s) override {
You can’t perform that action at this time.
0 commit comments