Skip to content

Commit 350c5d2

Browse files
committed
exetend logging info
1 parent 39892e9 commit 350c5d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/AudioTools/AudioCopy.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class StreamCopyT {
5252
// copies the data from one channel from the source to 2 channels on the destination - the result is in bytes
5353
size_t copy(){
5454
size_t result = 0;
55-
size_t delayCount = 0;
55+
uint16_t delayCount = 0;
5656
size_t len = available();
5757
size_t bytes_to_read;
5858

@@ -63,7 +63,7 @@ class StreamCopyT {
6363
size_t bytes_read = from->readBytes(buffer, bytes_to_read);
6464
result = write(bytes_read, delayCount);
6565
}
66-
LOGI("StreamCopy::copy %u -> %u bytes - in %d hops", bytes_to_read, result, delayCount);
66+
LOGI("StreamCopy::copy %zu -> %zu -> %zu bytes - in %d hops", bytes_to_read, bytes_read, result, delayCount);
6767
return result;
6868
}
6969

@@ -93,7 +93,7 @@ class StreamCopyT {
9393
}
9494
result = write(samples * sizeof(T)*2, delayCount);
9595
}
96-
LOGI("StreamCopy::copy %u -> %u bytes - in %d hops", bytes_to_read, result, delayCount);
96+
LOGI("StreamCopy::copy %zu -> %zu bytes - in %d hops", bytes_to_read, result, delayCount);
9797
return result;
9898
}
9999

@@ -158,7 +158,7 @@ class StreamCopy : public StreamCopyT<uint8_t> {
158158
template<typename T>
159159
size_t copy(BaseConverter<T> &converter) {
160160
size_t result = available();
161-
size_t delayCount = 0;
161+
uint16_t delayCount = 0;
162162

163163
BaseConverter<T> *coverter_ptr = &converter;
164164
if (result>0){
@@ -169,7 +169,7 @@ class StreamCopy : public StreamCopyT<uint8_t> {
169169
write(result, delayCount);
170170
}
171171

172-
LOGI("StreamCopy::copy %d bytes - in %d hops", result, delayCount);
172+
LOGI("StreamCopy::copy %zu bytes - in %d hops", result, delayCount);
173173
return result;
174174
}
175175

0 commit comments

Comments
 (0)