Skip to content

Commit 92ac531

Browse files
committed
[add] cpal as a dependency and implement the actual device enumeration + audio streams.
1 parent 6759146 commit 92ac531

5 files changed

Lines changed: 577 additions & 70 deletions

File tree

Cargo.lock

Lines changed: 222 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/lambda-rs-platform/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ obj-rs = "=0.7.4"
2222
wgpu = { version = "=28.0.0", optional = true, features = ["wgsl", "spirv"] }
2323
pollster = { version = "=0.4.0", optional = true }
2424
lambda-rs-logging = { path = "../lambda-rs-logging", version = "2023.1.30" }
25+
cpal = { version = "=0.17.1", optional = true }
2526

2627
# Force windows crate to 0.62 to unify wgpu-hal and gpu-allocator dependencies.
2728
# Both crates support this version range, but Cargo may resolve to different
@@ -55,4 +56,4 @@ wgpu-with-gl = ["wgpu", "wgpu/webgl"]
5556
audio = ["audio-device"]
5657

5758
# Granular feature flags (disabled by default)
58-
audio-device = []
59+
audio-device = ["dep:cpal"]

0 commit comments

Comments
 (0)