cpal icon indicating copy to clipboard operation
cpal copied to clipboard

Suppport ScreenCaptureKit loopback

Open thewh1teagle opened this issue 10 months ago • 5 comments

In recent versions of macOS there's new API called screen capture kit which provides a way to capture the screen content (Audio / Video), That way we can receive audio from the speakers, similar how cpal does that with WSAPI on Windows (Added in #251) As starting point we can follow the approach used in the project scap in engine/mac/mod.rs they capture audio / video using screen capture kit

thewh1teagle avatar Apr 16 '24 12:04 thewh1teagle

+1

LatentDream avatar Jun 05 '24 20:06 LatentDream

+1

rustdesk avatar Jun 15 '24 06:06 rustdesk

Hello, I'm interested in this issue. But it seems that ScreenCaptureKit works differently. ScreenCaptureKit capture audio through Display/Windows/Application instead of the Device, I don't know how to make it fit the crate.

Kree0 avatar Jul 01 '24 05:07 Kree0

Maybe, you can add a virtual device called loopback, which use screencapturekit, the others keep no change

rustdesk avatar Jul 01 '24 05:07 rustdesk

+1

louis030195 avatar Jul 31 '24 14:07 louis030195