diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-21 21:48:01 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-21 21:48:01 +0200 |
| commit | 3fca6ea6b307d6b6c228030fde7a906db078b9db (patch) | |
| tree | 00f3ea2e717b399516599d20947b369a8a3c7a15 /internal/gui | |
| parent | 8a4b935792c50101cf65b36e44f376c90c2d08c1 (diff) | |
fix: bg-bg cards generating audio in separate directories
- Fix critical bug where generateAudioBgBg() was creating two separate
card directories (one for front audio, one for back audio)
- Root cause: generateAudioWithVoiceAndFilename() calls findOrCreateWordDirectory()
with both the front word AND the back word, creating separate directories
- Solution: Pass wordDir to both audio generation calls
- Create new generateAudioWithVoiceAndFilenameInDir() function
- Refactor generateAudioWithVoiceAndFilename() to use new function
- generateAudioBgBg() now finds directory ONCE and passes it to both calls
This fixes the issue where opening a bg-bg card showed 'no audio loaded'
because audio_front.mp3 and audio_back.mp3 were in different directories.
Diffstat (limited to 'internal/gui')
0 files changed, 0 insertions, 0 deletions
