mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-22 15:25:46 +00:00
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:
+10
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user