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>
32 lines
829 B
Rust
32 lines
829 B
Rust
#[cfg(any(
|
|
target_os = "linux",
|
|
target_os = "dragonfly",
|
|
target_os = "freebsd",
|
|
target_os = "netbsd"
|
|
))]
|
|
pub(crate) mod alsa;
|
|
#[cfg(all(windows, feature = "asio"))]
|
|
pub(crate) mod asio;
|
|
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
|
pub(crate) mod coreaudio;
|
|
#[cfg(target_os = "emscripten")]
|
|
pub(crate) mod emscripten;
|
|
#[cfg(all(
|
|
any(
|
|
target_os = "linux",
|
|
target_os = "dragonfly",
|
|
target_os = "freebsd",
|
|
target_os = "netbsd"
|
|
),
|
|
feature = "jack"
|
|
))]
|
|
pub(crate) mod jack;
|
|
pub(crate) mod null;
|
|
#[cfg(target_os = "android")]
|
|
pub(crate) mod oboe;
|
|
#[cfg(all(target_os = "macos", feature = "screencapturekit"))]
|
|
pub(crate) mod screencapturekit;
|
|
#[cfg(windows)]
|
|
pub(crate) mod wasapi;
|
|
#[cfg(all(target_arch = "wasm32", feature = "wasm-bindgen"))]
|
|
pub(crate) mod webaudio;
|