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:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user