mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Added some currently disabled code to be used when sound fading is done (needs testing)
svn-id: r46649
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user