QTfrontend/SDLs.cpp
changeset 2213 bd51bbf06033
parent 2211 288360b78f30
child 2294 2e6ffb3ef304
equal deleted inserted replaced
2212:6b5da1a2765a 2213:bd51bbf06033
    62 	if (music < 0) {
    62 	if (music < 0) {
    63 		music = openal_loadfile(QString(datadir->absolutePath() + "/Music/main theme.ogg").toLocal8Bit().constData());
    63 		music = openal_loadfile(QString(datadir->absolutePath() + "/Music/main theme.ogg").toLocal8Bit().constData());
    64 		openal_toggleloop(music);
    64 		openal_toggleloop(music);
    65 	}
    65 	}
    66 	openal_setvolume(music, 60);
    66 	openal_setvolume(music, 60);
    67 	openal_fadein(music, 70);
    67 	openal_fadein(music, 25);
    68 }
    68 }
    69 
    69 
    70 void SDLInteraction::StopMusic()
    70 void SDLInteraction::StopMusic()
    71 {
    71 {
    72 	if (music >= 0) openal_fadeout(music, 70);
    72 	if (music >= 0) openal_fadeout(music, 40);
    73 }
    73 }