Skip to content

Commit 036645b

Browse files
committed
etc
1 parent d4f74d6 commit 036645b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/AudioTools/Communication/UDPStream.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
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

src/AudioTools/CoreAudio/Buffers.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)