diff options
author | Paul Gilbert | 2012-08-23 22:01:52 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-08-23 22:05:23 +1000 |
commit | bad6ec838876bd88e3638bd07ad6e7d12c9af727 (patch) | |
tree | 4aa87598e34ae7db58b1cfe25a9c7b361463c37a | |
parent | 93e10b52108e84e4db0e05a10d274a90e6cc50ff (diff) | |
download | scummvm-rg350-bad6ec838876bd88e3638bd07ad6e7d12c9af727.tar.gz scummvm-rg350-bad6ec838876bd88e3638bd07ad6e7d12c9af727.tar.bz2 scummvm-rg350-bad6ec838876bd88e3638bd07ad6e7d12c9af727.zip |
TONY: Fixed problem with spoken voices being clipped when timed text mode is on.
-rw-r--r-- | engines/tony/sound.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/tony/sound.cpp b/engines/tony/sound.cpp index 781172df52..87e142df48 100644 --- a/engines/tony/sound.cpp +++ b/engines/tony/sound.cpp @@ -132,7 +132,7 @@ FPSfx::FPSfx(bool bSoundOn) { _bSoundSupported = bSoundOn; _bFileLoaded = false; _lastVolume = 63; - _hEndOfBuffer = CORO_INVALID_PID_VALUE; + _hEndOfBuffer = CoroScheduler.createEvent(true, false); _bIsVoice = false; _loopStream = 0; _rewindableStream = 0; @@ -161,9 +161,8 @@ FPSfx::~FPSfx() { else delete _rewindableStream; - // FIXME - //if (hEndOfBuffer != CORO_INVALID_PID_VALUE) - // CloseHandle(hEndOfBuffer); + // Free the buffer end event + CoroScheduler.closeEvent(_hEndOfBuffer); } /** |