Author: grumbel
Date: 2007-11-01 04:06:50 +0100 (Thu, 01 Nov 2007)
New Revision: 3439
Modified:
trunk/pingus/src/sound/sound_real.cpp
Log:
- fixed soundcard issue
Modified: trunk/pingus/src/sound/sound_real.cpp
===================================================================
--- trunk/pingus/src/sound/sound_real.cpp 2007-10-31 13:39:31 UTC (rev
3438)
+++ trunk/pingus/src/sound/sound_real.cpp 2007-11-01 03:06:50 UTC (rev
3439)
@@ -34,7 +34,7 @@
if (SDL_Init(SDL_INIT_AUDIO) == -1)
{
std::cout << "Unable to initialize SDL: " << SDL_GetError() << std::endl;
- throw SDL_GetError();
+ throw std::string(SDL_GetError());
}
pout(PINGUS_DEBUG_SOUND) << "Initializing SDL_Mixer" << std::endl;
@@ -42,7 +42,7 @@
if (Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 4096) == -1)
{
std::cout << "Unable to initialize SDL_Mixer: " << Mix_GetError() <<
std::endl;
- throw Mix_GetError();
+ throw std::string(Mix_GetError());
}
}
_______________________________________________
pingus-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pingus-cvs