aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/sound
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-25 21:21:55 +0200
committerEinar Johan Trøan Sømåen2012-07-25 21:21:55 +0200
commit1ad859a468415cc7fd93adaa84beba02aae29ad8 (patch)
treed3b9cf40682b1bc4e29beca6a105cac85d1b30b2 /engines/wintermute/base/sound
parentfa96c9ea187cdb26e9f1ce048c9132f723e25df1 (diff)
downloadscummvm-rg350-1ad859a468415cc7fd93adaa84beba02aae29ad8.tar.gz
scummvm-rg350-1ad859a468415cc7fd93adaa84beba02aae29ad8.tar.bz2
scummvm-rg350-1ad859a468415cc7fd93adaa84beba02aae29ad8.zip
WINTERMUTE: "if(" -> "if ("
Diffstat (limited to 'engines/wintermute/base/sound')
-rw-r--r--engines/wintermute/base/sound/base_sound_buffer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/wintermute/base/sound/base_sound_buffer.cpp b/engines/wintermute/base/sound/base_sound_buffer.cpp
index 0b7fc840bf..27276f4fa7 100644
--- a/engines/wintermute/base/sound/base_sound_buffer.cpp
+++ b/engines/wintermute/base/sound/base_sound_buffer.cpp
@@ -148,22 +148,22 @@ bool BaseSoundBuffer::loadFromFile(const char *filename, bool forceReload) {
bool res;
bool NewlyCreated = false;
- if(!_soundBuffer || ForceReload || _streamed){
- if(!_file) _file = _gameRef->_fileManager->openFile(filename);
- if(!_file){
+ if (!_soundBuffer || ForceReload || _streamed){
+ if (!_file) _file = _gameRef->_fileManager->openFile(filename);
+ if (!_file){
_gameRef->LOG(0, "Error opening sound file '%s'", filename);
return STATUS_FAILED;
}
// switch to streamed for big files
- if(!_streamed && (_file->GetSize() > MAX_NONSTREAMED_FILE_SIZE && !_gameRef->_forceNonStreamedSounds)) SetStreaming(true);
+ if (!_streamed && (_file->GetSize() > MAX_NONSTREAMED_FILE_SIZE && !_gameRef->_forceNonStreamedSounds)) SetStreaming(true);
}
// create buffer
- if(!_soundBuffer){
+ if (!_soundBuffer){
NewlyCreated = true;
res = InitializeBuffer(_file);
- if(DID_FAIL(res)){
+ if (DID_FAIL(res)){
_gameRef->LOG(res, "Error creating sound buffer for file '%s'", filename);
return res;
}
@@ -172,13 +172,13 @@ bool BaseSoundBuffer::loadFromFile(const char *filename, bool forceReload) {
// store filename
- if(!_filename){
+ if (!_filename){
_filename = new char[strlen(filename)+1];
strcpy(_filename, filename);
}
// close file (if not streaming)
- if(!_streamed && _file){
+ if (!_streamed && _file){
_gameRef->_fileManager->closeFile(_file);
_file = NULL;
}