Skip to content

Commit 23a42ef

Browse files
committed
StreamCopy: copyBytes(0) no processing
1 parent e2d978a commit 23a42ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/AudioTools/CoreAudio/StreamCopy.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ class StreamCopyT {
110110
// if not initialized we do nothing
111111
if (from==nullptr && to==nullptr) return 0;
112112

113+
// if no bytes are requested, we do nothing
114+
if (bytes == 0) return 0;
115+
113116
// synchronize AudioInfo
114117
syncAudioInfo();
115118

0 commit comments

Comments
 (0)