aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/sound.cpp
diff options
context:
space:
mode:
authorMax Horn2007-02-28 14:48:26 +0000
committerMax Horn2007-02-28 14:48:26 +0000
commit8c8abca6f80fc63b5c11fa43319cdf56b4845660 (patch)
treeec031a874e67c92d3640824c2ee9816b5b6cab90 /engines/sword1/sound.cpp
parentdea688d0f5303e552bff8ff22798719d92ed53c1 (diff)
downloadscummvm-rg350-8c8abca6f80fc63b5c11fa43319cdf56b4845660.tar.gz
scummvm-rg350-8c8abca6f80fc63b5c11fa43319cdf56b4845660.tar.bz2
scummvm-rg350-8c8abca6f80fc63b5c11fa43319cdf56b4845660.zip
Changed the AppendableAudioStream code to use a queue of buffers, instead of a fixed size wrap-around memory buffer (this reduces memory usage in some cases by 500-700k, while actually being more flexible)
svn-id: r25909
Diffstat (limited to 'engines/sword1/sound.cpp')
-rw-r--r--engines/sword1/sound.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/sword1/sound.cpp b/engines/sword1/sound.cpp
index fd0a37003e..6c255cb4ce 100644
--- a/engines/sword1/sound.cpp
+++ b/engines/sword1/sound.cpp
@@ -382,10 +382,8 @@ void Sound::initCowSystem(void) {
}
void Sound::closeCowSystem(void) {
- if (_cowFile.isOpen())
- _cowFile.close();
- if (_cowHeader)
- free(_cowHeader);
+ _cowFile.close();
+ free(_cowHeader);
_cowHeader = NULL;
_currentCowFile = 0;
}