mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
eb1472c713
- Improve responsiveness by downloading the smallest possible chunk size when seeking or first loading. - Improve download time and decrease CPU usage by downloading the largest possible chunk size as throughput allows, still allowing for reasonable seek responsiveness (~1 second). - As a result, take refactoring opportunities: simplify prefetching logic, download threading, command sending, and some ergonomics. - Fix disappearing controls in the Spotify mobile UI while loading. - Fix handling of seek, pause, and play commands while loading. - Fix download rate calculation (don't use the Mercury rate). - Fix ping time calculation under lock contention.
11 lines
268 B
Rust
11 lines
268 B
Rust
#[macro_use]
|
|
extern crate log;
|
|
|
|
mod decrypt;
|
|
mod fetch;
|
|
|
|
mod range_set;
|
|
|
|
pub use decrypt::AudioDecrypt;
|
|
pub use fetch::{AudioFile, AudioFileError, StreamLoaderController};
|
|
pub use fetch::{MINIMUM_DOWNLOAD_SIZE, READ_AHEAD_BEFORE_PLAYBACK, READ_AHEAD_DURING_PLAYBACK};
|