Skip to content

Commit 9d3e581

Browse files
committed
StreamCopy: converter use correct size
1 parent 8e7a625 commit 9d3e581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AudioTools/CoreAudio/StreamCopy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class StreamCopyT {
161161
notifyMime(buffer.data(), bytes_to_read);
162162

163163
// convert data
164-
if (p_converter!=nullptr) p_converter->convert((uint8_t*)buffer.data(), result );
164+
if (p_converter!=nullptr) p_converter->convert((uint8_t*)buffer.data(), bytes_read );
165165

166166
// write data
167167
result = write(bytes_read, delayCount);

0 commit comments

Comments
 (0)