aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-08-16 12:57:21 -0700
committerChris Robinson <[email protected]>2022-08-16 12:57:21 -0700
commit832ccd7f489f7db763a164c663d730f4cadb71bc (patch)
tree6f72f8f16ce766e747e46f36638405c98f1e94df /alc
parent82c5b741e5c7448eb2649e33505622e42e08794e (diff)
Pass the bus number to AudioUnitRender from the callback
Diffstat (limited to 'alc')
-rw-r--r--alc/backends/coreaudio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp
index f779f844..b1b7b63a 100644
--- a/alc/backends/coreaudio.cpp
+++ b/alc/backends/coreaudio.cpp
@@ -562,7 +562,7 @@ CoreAudioCapture::~CoreAudioCapture()
OSStatus CoreAudioCapture::RecordProc(AudioUnitRenderActionFlags*,
- const AudioTimeStamp *inTimeStamp, UInt32, UInt32 inNumberFrames,
+ const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames,
AudioBufferList*) noexcept
{
AudioUnitRenderActionFlags flags = 0;
@@ -595,7 +595,7 @@ OSStatus CoreAudioCapture::RecordProc(AudioUnitRenderActionFlags*,
audiobuf.list.mBuffers[1].mData = rec_vec.second.buf;
audiobuf.list.mBuffers[1].mDataByteSize = remaining * mFormat.mBytesPerFrame;
}
- OSStatus err{AudioUnitRender(mAudioUnit, &flags, inTimeStamp, audiobuf.list.mNumberBuffers,
+ OSStatus err{AudioUnitRender(mAudioUnit, &flags, inTimeStamp, inBusNumber,
inNumberFrames, &audiobuf.list)};
if(err != noErr)
{