summaryrefslogtreecommitdiff
path: root/internal/gui
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-21 21:48:01 +0200
committerPaul Buetow <paul@buetow.org>2026-01-21 21:48:01 +0200
commit3fca6ea6b307d6b6c228030fde7a906db078b9db (patch)
tree00f3ea2e717b399516599d20947b369a8a3c7a15 /internal/gui
parent8a4b935792c50101cf65b36e44f376c90c2d08c1 (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