diff options
author | Strangerke | 2013-07-25 15:47:31 +0200 |
---|---|---|
committer | Strangerke | 2013-07-25 15:47:31 +0200 |
commit | db10ddace466522062a18a0c9079292225fb53d0 (patch) | |
tree | fd9e05a8476cc8d48c2c9a52031e914b650f19ae /engines/mortevielle/utils.cpp | |
parent | 8e2fe73afab1b27d70c4cd64c66b70673df5ea98 (diff) | |
download | scummvm-rg350-db10ddace466522062a18a0c9079292225fb53d0.tar.gz scummvm-rg350-db10ddace466522062a18a0c9079292225fb53d0.tar.bz2 scummvm-rg350-db10ddace466522062a18a0c9079292225fb53d0.zip |
MORTEVIELLE: Use a specific buffer instead of _mem for noise5 file
Diffstat (limited to 'engines/mortevielle/utils.cpp')
-rw-r--r-- | engines/mortevielle/utils.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/mortevielle/utils.cpp b/engines/mortevielle/utils.cpp index 001b2d3baf..2211a6d569 100644 --- a/engines/mortevielle/utils.cpp +++ b/engines/mortevielle/utils.cpp @@ -2134,7 +2134,10 @@ void MortevielleEngine::loadBRUIT5() { if (!f.open("bruit5")) error("Missing file - bruit5"); - f.read(&_mem[kAdrNoise5 * 16], 149 * 128); + free(_speechManager._noise5Buf); + _speechManager._noise5Size = f.size(); + _speechManager._noise5Buf = (byte *)malloc(sizeof(byte) * _speechManager._noise5Size); + f.read(_speechManager._noise5Buf, _speechManager._noise5Size); f.close(); } |