mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 23:05:46 +00:00
fix(audio): stabilize loudness normalization and streaming startup behavior
Improve normalization consistency by separating cache refresh for non-playing tracks, hardening track-id cache lookups, and keeping UI gain state aligned with actual playback. Also reduce startup stalls by preferring non-seekable streaming when format hints are missing and by tuning ALSA/analysis paths to avoid underrun-prone churn.
This commit is contained in:
@@ -6,6 +6,7 @@ import type { SubsonicSong } from '../api/subsonic';
|
||||
import { useAuthStore } from './authStore';
|
||||
import { showToast } from '../utils/toast';
|
||||
import { useOfflineJobStore, cancelledDownloads } from './offlineJobStore';
|
||||
import { emitAnalysisStorageChanged } from './analysisSync';
|
||||
|
||||
export interface OfflineTrackMeta {
|
||||
id: string;
|
||||
@@ -299,6 +300,9 @@ export const useOfflineStore = create<OfflineState>()(
|
||||
}).catch(() => {});
|
||||
}),
|
||||
);
|
||||
for (const trackId of album.trackIds) {
|
||||
emitAnalysisStorageChanged({ trackId, reason: 'offline-delete' });
|
||||
}
|
||||
|
||||
set(state => {
|
||||
const tracks = { ...state.tracks };
|
||||
|
||||
Reference in New Issue
Block a user