mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 13:40:27 +02:00
Fixed voice preview player keeps open at the background
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# v1.0.8 (pre-release)
|
# v1.0.8 (pre-release)
|
||||||
- Added support for AMD GPUs in Linux (Special thanks to @hg000125 for his contribution in #23)
|
- Added support for AMD GPUs in Linux (Special thanks to @hg000125 for his contribution in #23)
|
||||||
- Skipping PyTorch CUDA installation if GPU is not NVIDIA in WINDOWS_INSTALL.bat script, preventing unnecessary installation of PyTorch.
|
- Skipping PyTorch CUDA installation if GPU is not NVIDIA in WINDOWS_INSTALL.bat script, preventing unnecessary installation of PyTorch.
|
||||||
|
- Fixed voice preview player keeps open at the background after stopping the preview.
|
||||||
- Improved input box background color handling, fixed display issues in Linux Wayland.
|
- Improved input box background color handling, fixed display issues in Linux Wayland.
|
||||||
- Better sleep state handling for Linux.
|
- Better sleep state handling for Linux.
|
||||||
|
|
||||||
|
|||||||
@@ -919,8 +919,9 @@ class PlayAudioThread(QThread):
|
|||||||
pygame.mixer.music.play()
|
pygame.mixer.music.play()
|
||||||
# Wait until playback is finished
|
# Wait until playback is finished
|
||||||
while pygame.mixer.music.get_busy():
|
while pygame.mixer.music.get_busy():
|
||||||
_time.sleep(0.1)
|
_time.sleep(0.2)
|
||||||
pygame.mixer.music.unload()
|
pygame.mixer.music.unload()
|
||||||
|
pygame.mixer.quit() # Quit the mixer
|
||||||
self.finished.emit()
|
self.finished.emit()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.error.emit(f"Audio playback error: {str(e)}")
|
self.error.emit(f"Audio playback error: {str(e)}")
|
||||||
|
|||||||
Reference in New Issue
Block a user