Skip to content

Commit a4b93d9

Browse files
committed
Extended Logging
1 parent fc53d26 commit a4b93d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AudioTools/AudioCopy.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,13 @@ class StreamCopyT {
5555
size_t delayCount = 0;
5656
size_t len = available();
5757
size_t bytes_to_read;
58+
size_t bytes_read;
5859

5960
if (len>0){
6061
bytes_to_read = min(len, static_cast<size_t>(buffer_size));
6162
size_t samples = bytes_to_read / sizeof(T);
6263
bytes_to_read = samples * sizeof(T);
63-
size_t bytes_read = from->readBytes(buffer, bytes_to_read);
64+
bytes_read = from->readBytes(buffer, bytes_to_read);
6465
result = write(bytes_read, delayCount);
6566
}
6667
LOGI("StreamCopy::copy %zu -> %zu -> %zu bytes - in %zu hops", bytes_to_read, bytes_read, result, delayCount);

0 commit comments

Comments
 (0)