Added some currently disabled code to be used when sound fading is done (needs testing)

svn-id: r46649
This commit is contained in:
Filippos Karapetis
2009-12-27 15:23:56 +00:00
parent fbf1bada24
commit 4cbac8a2bb
+10 -1
View File
@@ -373,9 +373,18 @@ void SciMusic::doFade(MusicEntry *pSnd) {
if (pSnd->volume + pSnd->fadeStep > pSnd->fadeTo) {
pSnd->volume = pSnd->fadeTo;
pSnd->fadeStep = 0;
} else
} else {
pSnd->volume += pSnd->fadeStep;
}
pSnd->pMidiParser->setVolume(pSnd->volume);
if (pSnd->fadeStep == 0) {
// Signal the engine scripts that the sound is done fading
// FIXME: is this correct?
//SegManager *segMan = ((SciEngine *)g_engine)->getEngineState()->_segMan; // HACK
//PUT_SEL32V(segMan, pSnd->soundObj, signal, SIGNAL_OFFSET);
}
}
}