QTfrontend/SDLs.cpp
changeset 2294 2e6ffb3ef304
parent 2213 bd51bbf06033
child 2392 a55dbef5cf31
--- a/QTfrontend/SDLs.cpp	Sat Aug 01 14:03:25 2009 +0000
+++ b/QTfrontend/SDLs.cpp	Sun Aug 02 17:37:45 2009 +0000
@@ -26,7 +26,6 @@
 	music = -1;
 
 	SDL_Init(SDL_INIT_VIDEO);
-	openal_init(5);
 
 }
 
@@ -60,6 +59,7 @@
 void SDLInteraction::StartMusic()
 {
 	if (music < 0) {
+	    openal_init(5);
 		music = openal_loadfile(QString(datadir->absolutePath() + "/Music/main theme.ogg").toLocal8Bit().constData());
 		openal_toggleloop(music);
 	}