mirror of
https://github.com/RustAudio/rodio
synced 2024-12-12 13:12:30 +00:00
97befac520
Benchmarks use the music.wav file, we use *divan* as benchmark harnass. The time needed to load the wav file is excluded from the benchmark by preparing the data into a special test Source. That source also enables converting between formats. In the future *divan* will add support for structured (json) output. Then we could integrate with the bencher service to generate benchmark reports for all PR's and keep a timeseries of performance.
63 lines
1.8 KiB
TOML
63 lines
1.8 KiB
TOML
[package]
|
|
name = "rodio"
|
|
version = "0.19.0"
|
|
license = "MIT OR Apache-2.0"
|
|
description = "Audio playback library"
|
|
keywords = ["audio", "playback", "gamedev"]
|
|
repository = "https://github.com/RustAudio/rodio"
|
|
documentation = "https://docs.rs/rodio"
|
|
exclude = ["assets/**", "tests/**"]
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
cpal = "0.15.3"
|
|
claxon = { version = "0.4.2", optional = true }
|
|
hound = { version = "3.3.1", optional = true }
|
|
lewton = { version = "0.10", optional = true }
|
|
minimp3_fixed = { version = "0.5.4", optional = true}
|
|
symphonia = { version = "0.5.4", optional = true, default-features = false }
|
|
crossbeam-channel = { version = "0.5.8", optional = true }
|
|
|
|
thiserror = "1.0.49"
|
|
tracing = { version = "0.1.40", optional = true }
|
|
|
|
[features]
|
|
default = ["flac", "vorbis", "wav", "mp3"]
|
|
tracing = ["dep:tracing"]
|
|
|
|
flac = ["claxon"]
|
|
vorbis = ["lewton"]
|
|
wav = ["hound"]
|
|
mp3 = ["symphonia-mp3"]
|
|
minimp3 = ["dep:minimp3_fixed"]
|
|
wasm-bindgen = ["cpal/wasm-bindgen"]
|
|
cpal-shared-stdcxx = ["cpal/oboe-shared-stdcxx"]
|
|
symphonia-aac = ["symphonia/aac"]
|
|
symphonia-all = ["symphonia-aac", "symphonia-flac", "symphonia-isomp4", "symphonia-mp3", "symphonia-vorbis", "symphonia-wav"]
|
|
symphonia-flac = ["symphonia/flac"]
|
|
symphonia-isomp4 = ["symphonia/isomp4"]
|
|
symphonia-mp3 = ["symphonia/mp3"]
|
|
symphonia-vorbis = ["symphonia/vorbis"]
|
|
symphonia-wav = ["symphonia/wav", "symphonia/pcm", "symphonia/adpcm"]
|
|
symphonia-alac = ["symphonia/isomp4", "symphonia/alac"]
|
|
symphonia-aiff = ["symphonia/aiff", "symphonia/pcm"]
|
|
|
|
[dev-dependencies]
|
|
quickcheck = "0.9.2"
|
|
rstest = "0.18.2"
|
|
rstest_reuse = "0.6.0"
|
|
approx = "0.5.1"
|
|
dasp_sample = "0.11.0"
|
|
divan = "0.1.14"
|
|
|
|
[[bench]]
|
|
name = "effects"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "conversions"
|
|
harness = false
|
|
|
|
[[example]]
|
|
name = "music_m4a"
|
|
required-features = ["symphonia-isomp4", "symphonia-aac"]
|