Skip to content

Commit

Permalink
perf: use patched Symphonia for faster seeking
Browse files Browse the repository at this point in the history
Uses a patched version of Symphonia that improves seeking performance
in FLAC and MP4 files by using the known file byte length instead of
seeking to the end of file to determine length.

This is a temporary patch that will be removed once
pdeljanov/Symphonia#340 is merged upstream.
  • Loading branch information
roderickvd committed Jan 16, 2025
1 parent b851e5f commit d1543ce
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ and [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
- Higher audio quality (`f32` processing instead of `i16`)
- More robust AAC support in both ADTS and MP4 formats
- WAV support (for some podcasts)
- Faster seeking in MP3 files
- Faster seeking in FLAC and MP3 files
- Faster decoder initialization
- Lower memory usage

Expand Down
30 changes: 10 additions & 20 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ asio = ["cpal/asio"]
## - Fedora: jack-audio-connection-kit-devel
jack = ["cpal/jack"]

[patch.crates-io]
# TODO: remove when https://github.com/pdeljanov/Symphonia/pull/340 is merged
symphonia = { git = "https://github.com/roderickvd/Symphonia", branch = "perf/faster-seeking" }

[dependencies]
base64 = "0.22"
blowfish = "0.9"
Expand Down

0 comments on commit d1543ce

Please sign in to comment.