@@ -52,7 +52,7 @@ class StreamCopyT {
52
52
// copies the data from one channel from the source to 2 channels on the destination - the result is in bytes
53
53
size_t copy (){
54
54
size_t result = 0 ;
55
- size_t delayCount = 0 ;
55
+ uint16_t delayCount = 0 ;
56
56
size_t len = available ();
57
57
size_t bytes_to_read;
58
58
@@ -63,7 +63,7 @@ class StreamCopyT {
63
63
size_t bytes_read = from->readBytes (buffer, bytes_to_read);
64
64
result = write (bytes_read, delayCount);
65
65
}
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);
67
67
return result;
68
68
}
69
69
@@ -93,7 +93,7 @@ class StreamCopyT {
93
93
}
94
94
result = write (samples * sizeof (T)*2 , delayCount);
95
95
}
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);
97
97
return result;
98
98
}
99
99
@@ -158,7 +158,7 @@ class StreamCopy : public StreamCopyT<uint8_t> {
158
158
template <typename T>
159
159
size_t copy (BaseConverter<T> &converter) {
160
160
size_t result = available ();
161
- size_t delayCount = 0 ;
161
+ uint16_t delayCount = 0 ;
162
162
163
163
BaseConverter<T> *coverter_ptr = &converter;
164
164
if (result>0 ){
@@ -169,7 +169,7 @@ class StreamCopy : public StreamCopyT<uint8_t> {
169
169
write (result, delayCount);
170
170
}
171
171
172
- LOGI (" StreamCopy::copy %d bytes - in %d hops" , result, delayCount);
172
+ LOGI (" StreamCopy::copy %zu bytes - in %d hops" , result, delayCount);
173
173
return result;
174
174
}
175
175
0 commit comments