fix broken mp3/aac export

This commit is contained in:
Skyler Lehmkuhl
2026-02-16 07:53:23 -05:00
parent 6c88c4a8da
commit e03d12009f
7 changed files with 241 additions and 89 deletions
@@ -479,9 +479,11 @@ impl ExportOrchestrator {
) {
println!("🧵 [EXPORT THREAD] run_audio_export started");
// Send start notification
// Send start notification with calculated total frames
let duration = settings.end_time - settings.start_time;
let total_frames = (duration * settings.sample_rate as f64).round() as usize;
progress_tx
.send(ExportProgress::Started { total_frames: 0 })
.send(ExportProgress::Started { total_frames })
.ok();
println!("🧵 [EXPORT THREAD] Sent Started progress");