Post

Replies

Boosts

Views

Activity

Reply to ScreenCaptureKit - Sample project doesn't capture audio on MacOS 13.3
I'm using code from this sample: https://developer.apple.com/documentation/screencapturekit/capturing-screen-content-in-macos It's the same as the code posted by @mac_cain13 that uses .withAudioBufferList function. It doesn't work for me when capturing microphone audio with ScreenCaptureKit on macOS 15.3.1 - the function always returns nil. However, the same code works without an issue when capturing system audio with ScreenCaptureKit. It only fails to create AVAudioPCMBuffer from CMSampleBuffer when capturing microphone. The sample buffer with microphone audio seems to be fine, because the audio is there (I can save it to file on disk using AVAssetWriter and play it back without an issue). I only need the AVAudioPCMBuffer to visualize recorded audio in my app. Besides this use case, I write CMSampleBuffer to files on disk, and it works well. Perhaps there is another way?
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’25
Reply to Xcode 12.3 Release Simulators Dock Yellow / buggy
Disabling discrete GPU use in Simulator seems to be a workaround. From the Simulator app menu, choose: File → GPU Selection → Prefer Integrated GPU Restart the Simulator app if needed. There is no need to unplug the cables etc. By default, the "Automatic" option is selected, and it seems that when you start the Simulator app without being plugged into the power source, an integrated GPU is used. This is probably why the cable unplugging and plugging again is working for some people. I noticed that the yellow tint glitch only appears when a discrete GPU is used. Forcing the Simulator app to prefer an integrated GPU solves the issue for me. Unfortunately, when integrated GPU is used, even basic UI animations are miserably slow in the simulator.
Dec ’20