It was working fine on previous versions.
Error message: CaptureSample[13228:113286] [AVAB] AVAudioBuffer.mm:248 the number of buffers (810878176) does not match the format's number of channel streams (2)
From what I've found, this error is coming from the function createPCMBuffer on CaptureEngine
Link to sample project
https://developer.apple.com/documentation/screencapturekit/capturing_screen_content_in_macos
Post
Replies
Boosts
Views
Activity
I'm getting this error when I try to run the ScreenCaptureKit sample project on macOS Sonoma:
[ERROR] _SCStream_RemoteAudioQueueOperationHandlerWithError:1,053 streamOutput NOT found. Dropping frame
[ERROR] _SCStream_RemoteVideoQueueOperationHandlerWithError:1,020 stream output NOT found. Dropping frame
Both streamOutput are being set like this:
try stream?.addStreamOutput(streamOutput, type: .screen, sampleHandlerQueue: videoSampleBufferQueue)
try stream?.addStreamOutput(streamOutput, type: .audio, sampleHandlerQueue: audioSampleBufferQueue)
Link to sample project https://developer.apple.com/documentation/screencapturekit/capturing_screen_content_in_macos
Any idea of what is causing this?