File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11#pragma once
22#include < WiFi.h>
3- #include < esp_wifi.h>
43#include < WiFiUdp.h>
5-
4+ #if defined(ESP32)
5+ # include < esp_wifi.h>
6+ #endif
67#include " AudioTools/CoreAudio/BaseStream.h"
78#include " AudioTools/CoreAudio/Buffers.h"
89
@@ -139,12 +140,13 @@ class UDPStream : public BaseStream {
139140 delay (500 );
140141 }
141142 }
142-
143+ # if defined(ESP32)
143144 if (WiFi.status () == WL_CONNECTED) {
144145 // Performance Hack
145146 // client.setNoDelay(true);
146147 esp_wifi_set_ps (WIFI_PS_NONE);
147148 }
149+ #endif
148150 }
149151};
150152
Original file line number Diff line number Diff line change @@ -838,7 +838,8 @@ class NBuffer : public BaseBuffer<T> {
838838/* **
839839 * @brief A File backed buffer which uses the provided files for buffering with
840840 * the indicated max size. A file is made available for reading as soon as it
841- * reached the size limit. You must provide the files opened in "Write" mode!
841+ * reached the size limit. You must provide the files opened in "Write" mode with the
842+ * addFile() method!
842843 * @ingroup buffers
843844 * @tparam File: file class
844845 * @tparam T: buffered data type
You can’t perform that action at this time.
0 commit comments