Skip to content

Commit 4cb1308

Browse files
committed
URLStream comments
1 parent 83172f0 commit 4cb1308

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/AudioTools/CoreAudio/AudioHttp/URLStream.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class URLStream : public AbstractURLStream {
7272
/// Sets the password that will be used for logging in (when calling begin)
7373
void setPassword(const char* password) override { this->password = password; }
7474

75+
/// Defines the buffer that is used by individual read() or peek() calls
7576
void setReadBufferSize(int readBufferSize) {
7677
read_buffer_size = readBufferSize;
7778
}

src/AudioTools/CoreAudio/AudioHttp/URLStreamBuffered.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ class URLStreamBuffered : public AbstractURLStream {
178178
taskStream.setInput(urlStream);
179179
}
180180

181+
/// Defines the buffer that holds the with encoded data
181182
void setBufferSize(int bufferSize, int bufferCount){
182183
taskStream.setBufferSize(bufferSize, bufferCount);
183184
}
@@ -227,6 +228,7 @@ class URLStreamBuffered : public AbstractURLStream {
227228
urlStream.setPassword(password);
228229
}
229230

231+
/// ESP32 only: PowerSave off (= default setting) is much faster
230232
void setPowerSave(bool ps) override { urlStream.setPowerSave(ps); }
231233

232234

0 commit comments

Comments
 (0)