Add #ifdef blocks and stubs to disable sound, for VTune. Hopefully these
can go away when we drop bass ... Constness.
This commit is contained in:
@@ -17,11 +17,21 @@
|
|||||||
#include "RageException.h"
|
#include "RageException.h"
|
||||||
|
|
||||||
|
|
||||||
#include "bass/bass.h"
|
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")
|
#pragma comment(lib, "bass/bass.lib")
|
||||||
|
|
||||||
|
#include "bass/bass.h"
|
||||||
|
|
||||||
RageSound* SOUND = NULL;
|
|
||||||
|
|
||||||
|
|
||||||
RageSound::RageSound( HWND hWnd )
|
RageSound::RageSound( HWND hWnd )
|
||||||
@@ -113,3 +123,4 @@ void RageSound::PlayOnceStreamedFromDir( CString sDir )
|
|||||||
PlayOnceStreamed( sDir + arraySoundFiles[index] );
|
PlayOnceStreamed( sDir + arraySoundFiles[index] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user