feat: lossless (FLAC) streaming
Adds a Lossless streaming quality that asks /get-file-info for FLAC and decrypts its encraw stream in memory. FLAC and FLAC-in-MP4 decode through symphonia. When Yandex grants no FLAC, its lossy reply is played as is, except HE-AAC, which falls back to the MP3 path. The player bar badge shows the codec actually served and turns accent-coloured for FLAC. Adds a read-only stream_probe example.
This commit is contained in:
1 parent
c85f5785fd
commit
24ff874d34
8 files changed
+175
-24
No files matched your search
@@ -48,6 +48,12 @@ Settings (streaming quality, appearance, volume) are kept in
|
||||
`~/Library/Application Support/Musyx/settings.json`. Covers are cached under
|
||||
`~/Library/Caches/Musyx/covers` and can be cleared from Settings.
|
||||
|
||||
Streaming quality **Lossless** asks Yandex for FLAC (through the signed `/get-file-info`
|
||||
endpoint, decrypting its AES-CTR stream in memory). Yandex decides what to grant by
|
||||
subscription, region and track. When there's no FLAC, it answers with the best lossy file
|
||||
it allows, and Musyx plays that. The badge in the player bar shows what was actually served,
|
||||
and turns accent-coloured for FLAC.
|
||||
|
||||
## Check
|
||||
|
||||
```sh
|
||||
@@ -82,6 +88,10 @@ to stderr, followed by what's playing and the next three tracks.
|
||||
`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.
|
||||
|
||||
`cargo run -p musyx --example stream_probe -- "artist title"` asks for the lossless stream
|
||||
of the first search hit with the stored account (read-only). It downloads and decrypts the
|
||||
file, and prints the codec Yandex granted plus the decoded sample rate.
|
||||
|
||||
## Licences
|
||||
|
||||
Musyx is MIT. Onest and Unbounded are OFL (`crates/musyx/assets/fonts`), and Lucide icons
|
||||
|
||||
Reference in new issue
Block a user