mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 00:12:59 +00:00
SCUMM: DIMUSE: Fix theoretical possibility of division by zero
This commit is contained in:
parent
c3256a614a
commit
92efa503fb
@ -51,7 +51,7 @@ IMuseDigital::IMuseDigital(ScummEngine_v7 *scumm, Audio::Mixer *mixer, Common::M
|
||||
_usecPerInt = DIMUSE_TIMER_BASE_RATE_USEC;
|
||||
|
||||
_internalSampleRate = DIMUSE_BASE_SAMPLERATE;
|
||||
_internalFeedSize = DIMUSE_BASE_FEEDSIZE * (_internalSampleRate / DIMUSE_BASE_SAMPLERATE);
|
||||
_internalFeedSize = (int)(DIMUSE_BASE_FEEDSIZE * ((float)_internalSampleRate / DIMUSE_BASE_SAMPLERATE));
|
||||
|
||||
_splayer = nullptr;
|
||||
_isEarlyDiMUSE = (_vm->_game.id == GID_FT || (_vm->_game.id == GID_DIG && _vm->_game.features & GF_DEMO));
|
||||
|
Loading…
x
Reference in New Issue
Block a user