From 350c5d2b4d97946462db97d32fdc15976c917e15 Mon Sep 17 00:00:00 2001 From: Phil Schatzmann Date: Sat, 24 Jul 2021 18:08:00 +0200 Subject: [PATCH] exetend logging info --- src/AudioTools/AudioCopy.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AudioTools/AudioCopy.h b/src/AudioTools/AudioCopy.h index 6c0575178..0c20384cf 100644 --- a/src/AudioTools/AudioCopy.h +++ b/src/AudioTools/AudioCopy.h @@ -52,7 +52,7 @@ class StreamCopyT { // copies the data from one channel from the source to 2 channels on the destination - the result is in bytes size_t copy(){ size_t result = 0; - size_t delayCount = 0; + uint16_t delayCount = 0; size_t len = available(); size_t bytes_to_read; @@ -63,7 +63,7 @@ class StreamCopyT { size_t bytes_read = from->readBytes(buffer, bytes_to_read); result = write(bytes_read, delayCount); } - LOGI("StreamCopy::copy %u -> %u bytes - in %d hops", bytes_to_read, result, delayCount); + LOGI("StreamCopy::copy %zu -> %zu -> %zu bytes - in %d hops", bytes_to_read, bytes_read, result, delayCount); return result; } @@ -93,7 +93,7 @@ class StreamCopyT { } result = write(samples * sizeof(T)*2, delayCount); } - LOGI("StreamCopy::copy %u -> %u bytes - in %d hops", bytes_to_read, result, delayCount); + LOGI("StreamCopy::copy %zu -> %zu bytes - in %d hops", bytes_to_read, result, delayCount); return result; } @@ -158,7 +158,7 @@ class StreamCopy : public StreamCopyT { template size_t copy(BaseConverter &converter) { size_t result = available(); - size_t delayCount = 0; + uint16_t delayCount = 0; BaseConverter *coverter_ptr = &converter; if (result>0){ @@ -169,7 +169,7 @@ class StreamCopy : public StreamCopyT { write(result, delayCount); } - LOGI("StreamCopy::copy %d bytes - in %d hops", result, delayCount); + LOGI("StreamCopy::copy %zu bytes - in %d hops", result, delayCount); return result; }