Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can i use objc2 for system audio capture? #647

Open
louis030195 opened this issue Aug 30, 2024 · 2 comments
Open

can i use objc2 for system audio capture? #647

louis030195 opened this issue Aug 30, 2024 · 2 comments
Labels
A-framework Affects the framework crates and the translator for them question Further information is requested

Comments

@louis030195
Copy link

hi great work here

i'm working on https://github.com/mediar-ai/screenpipe

i'm trying to use macos audio output capture without crashing computer but:

doom-fish/screencapturekit-rs#52
https://github.com/RustAudio/cpal/pull/894/files

i even fixed tons of memory leaks on the screencapturekit rust lib but wondering if i should just switch to objc2 or https://github.com/yury/cidre

is there a way to capture audio output in objc2 through screencapturekit or coreaudio?

or if you have any recommendation

thanks for the great work 🙏

@madsmtm madsmtm added question Further information is requested A-framework Affects the framework crates and the translator for them labels Aug 30, 2024
@madsmtm
Copy link
Owner

madsmtm commented Aug 30, 2024

We do support ScreenCaptureKit in objc2-screen-capture-kit, and I would definitely recommend that over screencapturekit.

We do not yet support CoreAudio (tracked as part of #556), and I'm not sure exactly what's needed from it to make what you're doing work (not familiar with either framework), but if it comes down to it, you can always manually do the interop between objc2 and other crates.

Feel free to ping me in a PR or something that converts to objc2, I'd be happy to review it.

@madsmtm
Copy link
Owner

madsmtm commented Aug 30, 2024

In particular, there are a few APIs from ScreenCaptureKit that we do not support, because they use other frameworks that we do not support. But again, you can work around that by providing the binding yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-framework Affects the framework crates and the translator for them question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants