From 5789e0800f7802b9cdae38770f3de72957a25b8e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 13 Oct 2002 17:30:48 +0000 Subject: [PATCH] Add #ifdef blocks and stubs to disable sound, for VTune. Hopefully these can go away when we drop bass ... Constness. --- stepmania/src/RageSound.cpp | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index 2da24acb2d..49bafe0cfb 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -17,12 +17,22 @@ #include "RageException.h" -#include "bass/bass.h" -#pragma comment(lib, "bass/bass.lib") - - RageSound* SOUND = NULL; +/* I use this to turn off sound, since Bass doesn't want to work under + * VTune. -glenn */ +#if 0 +RageSound::RageSound( HWND hWnd ) { } +RageSound::~RageSound() { } +void RageSound::PlayOnceStreamed( CString sPath ) { } +void RageSound::PlayOnceStreamedFromDir( CString sDir ) { } +#else + +#pragma comment(lib, "bass/bass.lib") + +#include "bass/bass.h" + + RageSound::RageSound( HWND hWnd ) { @@ -113,3 +123,4 @@ void RageSound::PlayOnceStreamedFromDir( CString sDir ) PlayOnceStreamed( sDir + arraySoundFiles[index] ); } } +#endif