mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-08-15 02:27:45 +00:00
Fix strange speaker clicks when changing configuration - DirectSound wasn't being uninitialised on a restart (fixes #456)
This commit is contained in:
@@ -1320,13 +1320,13 @@ int APIENTRY WinMain(HINSTANCE passinstance, HINSTANCE, LPSTR lpCmdLine, int)
|
|||||||
|
|
||||||
sg_Mouse.Uninitialize(); // Maybe restarting due to switching slot-4 card from MouseCard to Mockingboard
|
sg_Mouse.Uninitialize(); // Maybe restarting due to switching slot-4 card from MouseCard to Mockingboard
|
||||||
LogFileOutput("Main: sg_Mouse.Uninitialize()\n");
|
LogFileOutput("Main: sg_Mouse.Uninitialize()\n");
|
||||||
|
|
||||||
|
DSUninit();
|
||||||
|
LogFileOutput("Main: DSUninit()\n");
|
||||||
}
|
}
|
||||||
while (g_bRestart);
|
while (g_bRestart);
|
||||||
|
|
||||||
// Release COM
|
// Release COM
|
||||||
DSUninit();
|
|
||||||
LogFileOutput("Exit: DSUninit()\n");
|
|
||||||
|
|
||||||
SysClk_UninitTimer();
|
SysClk_UninitTimer();
|
||||||
LogFileOutput("Exit: SysClk_UninitTimer()\n");
|
LogFileOutput("Exit: SysClk_UninitTimer()\n");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user