feat(analysis): re-analyze waveform when clearing loudness cache

Add analysis_delete_waveform_for_track, invoke it from loudness reseed,
clear waveformBins in the UI, and extend queue strings for tooltips/toast.
This commit is contained in:
Maxim Isaev
2026-05-10 01:34:40 +03:00
parent 7a0dd93f3e
commit 308eb36f05
13 changed files with 57 additions and 3 deletions
@@ -141,6 +141,14 @@ pub fn analysis_delete_loudness_for_track(
cache.delete_loudness_for_track_id(&track_id)
}
#[tauri::command]
pub fn analysis_delete_waveform_for_track(
track_id: String,
cache: tauri::State<'_, analysis_cache::AnalysisCache>,
) -> Result<u64, String> {
cache.delete_waveform_for_track_id(&track_id)
}
#[tauri::command]
pub fn analysis_delete_all_waveforms(
cache: tauri::State<'_, analysis_cache::AnalysisCache>,