Another attempt at memory management. It hasn't failed yet but then again I haven't pushed yet, so here's the ultimate test.

This commit is contained in:
Storm Dragon
2025-11-04 00:39:33 -05:00
parent 2ae85fe25c
commit 8bcde8bf37
2 changed files with 64 additions and 5 deletions
+3 -2
View File
@@ -2289,8 +2289,9 @@ class BookReader:
wavData = self.ttsEngine.text_to_wav_data(paragraph)
if wavData:
# Stop any existing audio playback
if self.audioPlayer.is_audio_file_playing():
# Stop any existing audio file (playing, paused, or idle)
# This ensures temp files are cleaned up immediately
if self.audioPlayer.is_audio_file_loaded():
self.audioPlayer.stop_audio_file()
# Get current playback speed from config