From a78bcf7c7fcb93b9e86a19357f6ba9f40a019e92 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 3 Sep 2002 05:55:12 +0000 Subject: [PATCH] Make the shut-down-bass hack a little less ugly. --- stepmania/src/Crash.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/stepmania/src/Crash.cpp b/stepmania/src/Crash.cpp index 53fe29c0ef..0a32e9b9f0 100644 --- a/stepmania/src/Crash.cpp +++ b/stepmania/src/Crash.cpp @@ -1,3 +1,5 @@ +#include "stdafx.h" + // from VirtualDub // Copyright (C) 1998-2001 Avery Lee // @@ -265,7 +267,8 @@ static void DoEraseEmergencyDump() DeleteFile(szEmergencyDumpName); } -#include "bass/bass.h" +//#include "bass/bass.h" +#include "RageSound.h" long __stdcall CrashHandler(EXCEPTION_POINTERS *pExc) { ///////////////////////// // @@ -369,9 +372,8 @@ long __stdcall CrashHandler(EXCEPTION_POINTERS *pExc) { * crashing ourselves. Now, it's far from safe to call these functions * after a crash, but if we don't it'll crash anyway, so we have * nothing to lose. */ - - BASS_Stop(); - BASS_Free(); + delete SOUND; + SOUND = NULL; /* We've made it. Delete the emergency dump. */ DoEraseEmergencyDump();