diff options
author | Chris Robinson <[email protected]> | 2020-11-23 10:43:20 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-11-23 10:43:20 -0800 |
commit | d062c16629a93e37366ab88d60d2df3372a234e2 (patch) | |
tree | d76eebe9c636f996901482b59fc65f1179f5ba43 | |
parent | 31c7eb5c552482cc782b1599c94532cecf09851a (diff) |
Fix buffer offset for the second conversion
-rw-r--r-- | alc/backends/coreaudio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<ALuint>(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; } |