feat: macos, screencapturekit
1. Add new feature `screencapturekit`. 2. Remove `unwrap()` in mod `screencapturekit`. No all `unwrap()` in this crate are removed. 3. Add selector check before calling it. Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
e851e41b6e
commit
f5b0c718de
5 changed files with 52 additions and 19 deletions
|
|
@ -24,7 +24,7 @@ pub(crate) mod jack;
|
|||
pub(crate) mod null;
|
||||
#[cfg(target_os = "android")]
|
||||
pub(crate) mod oboe;
|
||||
#[cfg(target_os = "macos")]
|
||||
#[cfg(all(target_os = "macos", feature = "screencapturekit"))]
|
||||
pub(crate) mod screencapturekit;
|
||||
#[cfg(windows)]
|
||||
pub(crate) mod wasapi;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue