We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3a06f6 commit 772bee1Copy full SHA for 772bee1
src/AudioTools/AudioCopy.h
@@ -176,14 +176,13 @@ class StreamCopyT {
176
}
177
178
/// copies all data
179
- void copyAll(){
+ void copyAll(int delay=5){
180
LOGD(LOG_METHOD);
181
if (from==nullptr || to == nullptr)
182
return;
183
184
while(copy()){
185
- yield();
186
- delay(100);
+ delay(delay);
187
188
189
0 commit comments