fix(analysis): decode Opus in waveform and loudness pipeline (#883)

* fix(analysis): decode Opus in waveform and loudness pipeline

Playback already registered symphonia-adapter-libopus; the analysis crate
used the default Symphonia codec registry without Opus, so .opus tracks
failed at decoder creation. Mirror the audio codec registry, pass format
hints from file suffix and OggS sniffing, and thread hints through the CPU
seed queue.

* docs: CHANGELOG and credits for PR #883 (Opus analysis decode)
This commit is contained in:
cucadmuh
2026-05-28 13:07:02 +03:00
committed by GitHub
parent 8004ec559c
commit 091e61f7a5
10 changed files with 147 additions and 41 deletions
+10 -1
View File
@@ -174,7 +174,16 @@ pub async fn promote_stream_cache_to_hot_cache(
&track_id,
None,
);
let _ = enqueue_track_analysis(&app, &server_id, &track_id, &bytes, priority).await;
let format_hint = Some(suffix.to_ascii_lowercase());
let _ = enqueue_track_analysis(
&app,
&server_id,
&track_id,
&bytes,
format_hint.as_deref(),
priority,
)
.await;
let size = tokio::fs::metadata(&file_path)
.await