fix up error reporting; move some stray sdl_sound stuff out of RageSound

This commit is contained in:
Glenn Maynard
2003-01-16 01:04:54 +00:00
parent 17cfbda874
commit 607a1b6320
2 changed files with 11 additions and 11 deletions
@@ -23,6 +23,14 @@ const int read_block_size = 1024;
bool SoundReader_SDL_Sound::Open(CString filename)
{
static bool initialized = false;
if(!initialized)
{
if(!Sound_Init())
RageException::Throw( "RageSoundManager::RageSoundManager: error initializing sound loader: %s", Sound_GetError());
initialized = true;
}
inbuf = NULL;
avail = 0;