From c2a3d857bf26ca85fa9be071275f73f69a2f66cc Mon Sep 17 00:00:00 2001 From: bgk Date: Wed, 23 Apr 2008 18:53:21 +0000 Subject: [PATCH] GTK GUI : Properly shutdown the sound output git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@493 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/gtk/window.cpp | 6 ++++++ src/gtk/window.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 7baf3690..cd56aed8 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -837,6 +837,7 @@ Window::Window(GtkWindow * _pstWindow, const Glib::RefPtr & _poXml) : Window::~Window() { vOnFileClose(); + vUnInitSystem(); vSaveHistoryToConfig(); vSaveJoypadsToConfig(); vSaveConfig(m_sConfigFile); @@ -935,6 +936,11 @@ void Window::vInitSystem() Init_2xSaI(32); } +void Window::vUnInitSystem() +{ + systemSoundShutdown(); +} + void Window::vInitConfig() { m_oConfig.vClear(); diff --git a/src/gtk/window.h b/src/gtk/window.h index 0ae87fef..819bf35c 100644 --- a/src/gtk/window.h +++ b/src/gtk/window.h @@ -279,6 +279,7 @@ private: ESoundQuality m_eSoundQuality; void vInitSystem(); + void vUnInitSystem(); void vInitConfig(); void vCheckConfig(); void vInitScreenArea();