aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/sound/music_room_handler.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-09-16 15:23:43 -0400
committerPaul Gilbert2017-09-16 15:23:43 -0400
commit3e5515cc21d8e898fd69464643255d135c5b942d (patch)
tree2f0c9351f8fdfb517d4e743d54f7d7e60f5e6aa4 /engines/titanic/sound/music_room_handler.cpp
parent09931ae0aa11aafa8ad6324a92fafd1fbcd678af (diff)
downloadscummvm-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.cpp4
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() {