(tired of seeing these files show up as modified in wincvs)

This commit is contained in:
Glenn Maynard
2002-11-16 07:36:47 +00:00
parent 054976824b
commit c1ad9a4159
+2 -2
View File
@@ -22,7 +22,7 @@ RageSound* SOUND = NULL;
/* I use this to turn off sound, since Bass doesn't want to work under /* I use this to turn off sound, since Bass doesn't want to work under
* VTune. -glenn */ * VTune. -glenn */
#if 0 #if 0
RageSound::RageSound( HWND hWnd ) { } RageSound::RageSound() { }
RageSound::~RageSound() { } RageSound::~RageSound() { }
void RageSound::PlayOnceStreamed( CString sPath ) { } void RageSound::PlayOnceStreamed( CString sPath ) { }
void RageSound::PlayOnceStreamedFromDir( CString sDir ) { } void RageSound::PlayOnceStreamedFromDir( CString sDir ) { }
@@ -89,7 +89,7 @@ RageSound::~RageSound()
void RageSound::PlayOnceStreamed( CString sPath ) void RageSound::PlayOnceStreamed( CString sPath )
{ {
HSTREAM hStream = BASS_StreamCreateFile( FALSE, const_cast<char*>((const char *)sPath), 0, 0, BASS_STREAM_AUTOFREE ); HSTREAM hStream = BASS_StreamCreateFile( FALSE, const_cast<char*>((const char *)sPath), 0, 0, BASS_STREAM_AUTOFREE );
if( hStream == NULL ) if( !hStream )
throw RageException( "RageSound: Error creating stream." ); throw RageException( "RageSound: Error creating stream." );
if( FALSE == BASS_StreamPlay( hStream, FALSE, 0 ) ) if( FALSE == BASS_StreamPlay( hStream, FALSE, 0 ) )