From d062c16629a93e37366ab88d60d2df3372a234e2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 23 Nov 2020 10:43:20 -0800 Subject: Fix buffer offset for the second conversion --- alc/backends/coreaudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp index 6ec0f3ab..60a2c00a 100644 --- a/alc/backends/coreaudio.cpp +++ b/alc/backends/coreaudio.cpp @@ -612,7 +612,7 @@ ALCenum CoreAudioCapture::captureSamples(al::byte *buffer, ALCuint samples) { const void *src1{rec_vec.second.buf}; auto src1len = static_cast(rec_vec.second.len); - got += mConverter->convert(&src1, &src1len, buffer+got, samples-got); + got += mConverter->convert(&src1, &src1len, buffer + got*mFrameSize, samples-got); total_read += rec_vec.second.len - src1len; } -- cgit v1.2.3