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

+5
View File
@@ -48,6 +48,11 @@ MUSYX_SNAPSHOT=design/shots/home.png MUSYX_SNAPSHOT_ROUTE=home MUSYX_SNAPSHOT_TH
route except signin renders with a sample signed-in account, so no network or keychain is needed.
`MUSYX_SNAPSHOT_DRAWER` takes queue or lyrics. `MUSYX_SNAPSHOT_THEME` takes light or dark.
### Audio
`cargo run -p musyx --example audio_probe` lists the output devices and checks that each one
opens. Use it when the player bar says no sound output was found.
## Licences
Musyx is MIT. Onest and Unbounded are OFL (`crates/musyx/assets/fonts`), and Lucide icons