GTK GUI :

Properly shutdown the sound output
This commit is contained in:
bgk 2008-04-23 18:53:21 +00:00
parent d1d115dbe8
commit 79f61a2e2f
2 changed files with 7 additions and 0 deletions

View File

@ -837,6 +837,7 @@ Window::Window(GtkWindow * _pstWindow, const Glib::RefPtr<Xml> & _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();

View File

@ -279,6 +279,7 @@ private:
ESoundQuality m_eSoundQuality;
void vInitSystem();
void vUnInitSystem();
void vInitConfig();
void vCheckConfig();
void vInitScreenArea();