diff options
author | Paul Gilbert | 2017-09-16 15:23:43 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-09-16 15:23:43 -0400 |
commit | 3e5515cc21d8e898fd69464643255d135c5b942d (patch) | |
tree | 2f0c9351f8fdfb517d4e743d54f7d7e60f5e6aa4 /engines/titanic/sound/music_room_handler.cpp | |
parent | 09931ae0aa11aafa8ad6324a92fafd1fbcd678af (diff) | |
download | scummvm-rg350-3e5515cc21d8e898fd69464643255d135c5b942d.tar.gz scummvm-rg350-3e5515cc21d8e898fd69464643255d135c5b942d.tar.bz2 scummvm-rg350-3e5515cc21d8e898fd69464643255d135c5b942d.zip |
TITANIC: Improve audio buffer critial section handling
Diffstat (limited to 'engines/titanic/sound/music_room_handler.cpp')
-rw-r--r-- | engines/titanic/sound/music_room_handler.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/engines/titanic/sound/music_room_handler.cpp b/engines/titanic/sound/music_room_handler.cpp index dbbe4e4ca8..ffc90ffca6 100644 --- a/engines/titanic/sound/music_room_handler.cpp +++ b/engines/titanic/sound/music_room_handler.cpp @@ -202,8 +202,6 @@ bool CMusicRoomHandler::update() { } void CMusicRoomHandler::updateAudio() { - _audioBuffer->enterCriticalSection(); - int size = _audioBuffer->freeSize(); int count; int16 *ptr; @@ -234,8 +232,6 @@ void CMusicRoomHandler::updateAudio() { _audioBuffer->push(audioData, size); delete[] audioData; } - - _audioBuffer->leaveCriticalSection(); } void CMusicRoomHandler::updateInstruments() { |