Skip to content

Commit

Permalink
Implement device enumeration for WASAPI driver backend
Browse files Browse the repository at this point in the history
  • Loading branch information
geom3trik committed Jul 25, 2024
1 parent 7ba49d1 commit 2afb27c
Show file tree
Hide file tree
Showing 5 changed files with 510 additions and 5 deletions.
129 changes: 129 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,24 @@ version = "0.1.0"
edition = "2021"

[dependencies]
alsa = "0.9.0"
duplicate = "1.0.0"
ndarray = "0.15.6"
thiserror = "1.0.63"

[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd"))'.dependencies]
alsa = "0.9.0"

[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.58.0", features = [
"Win32_Media_Audio",
"Win32_Foundation",
"Win32_Devices_Properties",
"Win32_Media_KernelStreaming",
"Win32_System_Com_StructuredStorage",
"Win32_System_Threading",
"Win32_Security",
"Win32_System_SystemServices",
"Win32_System_Variant",
"Win32_Media_Multimedia",
"Win32_UI_Shell_PropertiesSystem"
]}
9 changes: 9 additions & 0 deletions src/backends/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
#[cfg(any(
target_os = "linux",
target_os = "dragonfly",
target_os = "freebsd",
target_os = "netbsd"
))]
pub mod alsa;

#[cfg(target_os = "windows")]
pub mod wasapi;
Loading

0 comments on commit 2afb27c

Please sign in to comment.