aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-08-18 11:52:59 -0700
committerChris Robinson <[email protected]>2022-08-18 11:52:59 -0700
commit07928fbb6436b24b28e49e0590e62588319fe78e (patch)
treedeed5b77c13ff4ac5b7db47f3957dc2fb6a4eb7c
parent19d35a45d7f1a7348650b824b98a11dd6c51e49f (diff)
Fix the ringbuffer write size
-rw-r--r--alc/backends/coreaudio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp
index f4190533..8b45fefe 100644
--- a/alc/backends/coreaudio.cpp
+++ b/alc/backends/coreaudio.cpp
@@ -585,7 +585,7 @@ OSStatus CoreAudioCapture::RecordProc(AudioUnitRenderActionFlags *ioActionFlags,
return err;
}
- mRing->write(mCaptureData.data(), inNumberFrames * mFrameSize);
+ mRing->write(mCaptureData.data(), inNumberFrames);
return noErr;
}