You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -280,10 +280,18 @@ Returns `0` if the stream is a radio stream.
280
280
281
281
### Get the buffer fill status
282
282
```c++
283
-
constchar *bufferStatus();
283
+
constchar *bufferStatus()
284
284
```
285
285
286
-
Returns `0/0` if there is no buffer.<br>Otherwise returns something like `4096/65536` which means 4kB waiting in a 64kB buffer.<br>A buffer will only be allocated if there is enough free psram.
286
+
Returns `0/0` if there is no buffer.<br>Otherwise returns something like `4096/65536` which means 4kB waiting in a 64kB buffer.
287
+
288
+
```c++
289
+
void bufferStatus(size_t &used, size_t &capacity)
290
+
```
291
+
292
+
There is also a version that takes two `size_t` variables by reference.<br>Works the same as the `const char *` version.
293
+
294
+
A buffer will only be allocated if there is enough free psram.
0 commit comments