equal
deleted
inserted
replaced
169 music = oalb_loadfile(QString(datadir->absolutePath() + "/Music/main theme.ogg").toLocal8Bit().constData()); |
169 music = oalb_loadfile(QString(datadir->absolutePath() + "/Music/main theme.ogg").toLocal8Bit().constData()); |
170 |
170 |
171 } |
171 } |
172 oalb_playsound(music, 1); |
172 oalb_playsound(music, 1); |
173 oalb_setvolume(music, 60); |
173 oalb_setvolume(music, 60); |
|
174 oalb_fadein(music, 50); |
174 } |
175 } |
175 |
176 |
176 void SDLInteraction::StopMusic() |
177 void SDLInteraction::StopMusic() |
177 { |
178 { |
178 // if (music >= 0) openal_fadeout(music, 40); |
179 if (music >= 0) oalb_fadeout(music, 20); |
179 oalb_stopsound(music); |
180 oalb_stopsound(music); |
180 } |
181 } |
181 |
182 |
182 //we need thjs wrapper because of some issues with windows drivers |
183 //we need thjs wrapper because of some issues with windows drivers |
183 //beware that this cause a slight delay when playing the first sound |
184 //beware that this cause a slight delay when playing the first sound |