QTfrontend/SDLs.cpp
changeset 1225 f882a92ef872
parent 1224 0b9fbee5ceda
child 1235 070629f3902d
--- a/QTfrontend/SDLs.cpp	Sat Aug 16 20:15:27 2008 +0000
+++ b/QTfrontend/SDLs.cpp	Sat Aug 16 20:36:18 2008 +0000
@@ -29,7 +29,6 @@
 	
 	Mix_Volume(-1, 50);
 	music = Mix_LoadMUS(QString(datadir->absolutePath() + "/Music/main theme.ogg").toAscii().constData());
-	StartMusic();
 }
 
 SDLInteraction::~SDLInteraction()
@@ -59,10 +58,10 @@
 }
 void SDLInteraction::StartMusic()
 {
-	Mix_PlayMusic(music, -1);
+	Mix_FadeInMusic(music, -1, 3000);
 }
 
 void SDLInteraction::StopMusic()
 {
-
+	Mix_FadeOutMusic(2000);
 }