fix(audio): robust async buffer loading with state merging + API fallback

- Rewrite loadAudioBuffersForTracks to use functional setTracks
  preventing loss of intermediate state updates
- Add API download endpoint as fallback when static fetch fails
- Also update sessionTabs tracks with loaded buffers
- return decodeAudioFile result (audioBuffer+channelInfo) instead
  of just audioBuffer
This commit is contained in:
2026-07-30 22:30:56 +07:00
parent be3205645f
commit b1aec24392
2 changed files with 57 additions and 41 deletions
File diff suppressed because one or more lines are too long