File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 17
17
project (arduino-audio-tools )
18
18
19
19
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0" )
20
- # set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0")
21
20
set (FETCHCONTENT_UPDATES_DISCONNECTED ON )
22
- add_compile_options (-Wno-deprecated-declarations )
23
21
24
22
include (FetchContent )
25
23
@@ -41,14 +39,14 @@ else()
41
39
)
42
40
43
41
if (ADD_PORTAUDIO )
44
- add_compile_options (-DIS_DESKTOP )
45
42
# Add Portaduio for desktop build
46
43
FetchContent_Declare (portaudio GIT_REPOSITORY "https://github.com/PortAudio/portaudio.git" GIT_TAG v19.7.0 )
47
44
FetchContent_GetProperties (portaudio )
48
45
if (NOT portaudio_POPULATED )
49
46
FetchContent_Populate (portaudio )
50
47
add_subdirectory (${portaudio_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} /portaudio )
51
48
endif ()
49
+
52
50
endif ()
53
51
54
52
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ class Stream : public Print {
148
148
#ifndef DOXYGEN
149
149
virtual int read () { return -1 ; }
150
150
virtual int peek () { return -1 ; }
151
- virtual void setTimeout (size_t t ) {}
151
+ virtual void setTimeout (size_t timeoutMs ) {}
152
152
size_t readBytesUntil (char terminator, char *buffer, size_t length) {
153
153
for (int j=0 ;j<length;j++){
154
154
int val = read ();
Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ class HttpRequest : public BaseStream {
335
335
}
336
336
337
337
// / Defines the client timeout in ms
338
- void setTimeout (size_t timeoutMs) { clientTimeout = timeoutMs; }
338
+ void setTimeout (size_t timeoutMs) override { clientTimeout = timeoutMs; }
339
339
340
340
// / we are sending the data chunked
341
341
bool isChunked () { return request_header.isChunked (); }
You can’t perform that action at this time.
0 commit comments