Skip to content

Commit 16c3673

Browse files
committed
feat: add Decoder support for Bytes, Arc, Box, and Vec types
Fixes #141
1 parent 2bea71c commit 16c3673

File tree

4 files changed

+331
-26
lines changed

4 files changed

+331
-26
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ wav_output = ["dep:hound"]
2525
tracing = ["dep:tracing"]
2626
# Experimental features using atomic floating-point operations
2727
experimental = ["dep:atomic_float"]
28+
# Enable support for bytes::Bytes type in audio sources
29+
bytes = ["dep:bytes"]
2830

2931
# Audio generation features
3032
#
@@ -92,6 +94,7 @@ all-features = true
9294
rustdoc-args = ["--cfg", "docsrs"]
9395

9496
[dependencies]
97+
bytes = { version = "1", optional = true }
9598
cpal = { version = "0.16", optional = true }
9699
dasp_sample = "0.11.0"
97100
claxon = { version = "0.4.2", optional = true }

src/decoder/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ impl Default for Settings {
385385
mime_type: None,
386386
is_seekable: false,
387387
total_duration: None,
388-
scan_duration: false,
388+
scan_duration: true,
389389
}
390390
}
391391
}

0 commit comments

Comments
 (0)