feat: playback of liked tracks with audio engine, queue and player bar

- ym-api: Track/Stream models, liked tracks, signed download URLs (full MP3
  over AAC over previews, highest bitrate) and in-memory fetch
- Audio thread on rodio, driven by commands and reporting through an iced
  subscription; generation ids drop stale events
- Opens the default output with a buffer clamped to the device's range:
  rodio's 2048-frame default fails on Bluetooth headphones that cap at 1024
- Queue with shuffle, repeat off/all/one, back/advance and jump; player
  state machine with prefetch of the next track, replay from memory, and
  skipping unplayable tracks (stops after three in a row)
- Working player bar (seek, volume, mute, quality badge), queue drawer,
  Collection screen with a lazily built liked-tracks list
- audio_probe example lists and test-opens output devices
This commit is contained in:
Yuriy Panov committed 2026-10-15 14:38:33 +06:00
1 parent 43e8f86a5d
commit b73af1f870
20 files changed
+2141 -202

No files matched your search

+2
View File
@@ -6,6 +6,8 @@
pub mod auth;
mod client;
mod error;
mod models;
pub use client::{Account, YmClient};
pub use models::{AlbumRef, ArtistRef, Stream, Track};
pub use error::{Error, Result};