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 25398d7 commit 597fde9Copy full SHA for 597fde9
src/AudioTools/AudioCopy.h
@@ -175,15 +175,18 @@ class StreamCopyT {
175
delay_on_no_data = delayMs;
176
}
177
178
- /// copies all data
179
- void copyAll(int delayMs=5){
+ /// copies all data - returns true if we copied anything
+ bool copyAll(int delayMs=5){
180
LOGD(LOG_METHOD);
181
+ bool result = false;
182
if (from==nullptr || to == nullptr)
- return;
183
+ return result;
184
185
while(copy()){
186
+ result = true;
187
delay(delayMs);
188
189
190
191
192
/// Provides the actual mime type, that was determined from the first available data
0 commit comments