diff options
author | Strangerke | 2011-09-08 07:55:40 +0200 |
---|---|---|
committer | Strangerke | 2011-09-08 07:55:40 +0200 |
commit | b60a706751348433457d1e5f3f39f07c20afa483 (patch) | |
tree | 53cb27a2b578e0f0736e48e3602b2616f62b4e20 /engines/toon/audio.cpp | |
parent | e080594a7be6308f75bd5edac83a8e696d97c0fd (diff) | |
download | scummvm-rg350-b60a706751348433457d1e5f3f39f07c20afa483.tar.gz scummvm-rg350-b60a706751348433457d1e5f3f39f07c20afa483.tar.bz2 scummvm-rg350-b60a706751348433457d1e5f3f39f07c20afa483.zip |
JANITORIAL: Fix some formatting glitches in gob, hugo and toon
Diffstat (limited to 'engines/toon/audio.cpp')
-rw-r--r-- | engines/toon/audio.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/toon/audio.cpp b/engines/toon/audio.cpp index 4a4a84e62c..5b2d06b74d 100644 --- a/engines/toon/audio.cpp +++ b/engines/toon/audio.cpp @@ -65,7 +65,7 @@ void AudioManager::muteMusic(bool muted) { } void AudioManager::muteVoice(bool muted) { - if(voiceStillPlaying() && _channels[2]) { + if (voiceStillPlaying() && _channels[2]) { _channels[2]->setVolume(muted ? 0 : 255); } _voiceMuted = muted; @@ -272,7 +272,7 @@ AudioStreamInstance::~AudioStreamInstance() { int AudioStreamInstance::readBuffer(int16 *buffer, const int numSamples) { debugC(5, kDebugAudio, "readBuffer(buffer, %d)", numSamples); - if(_stopped) + if (_stopped) return 0; handleFade(numSamples); @@ -598,7 +598,7 @@ void AudioManager::updateAmbientSFX() for (int32 i = 0; i < 4; i++) { AudioAmbientSFX* ambient = &_ambientSFXs[i]; if (ambient->_enabled && (ambient->_channel < 0 || !(_channels[ambient->_channel] && _channels[ambient->_channel]->isPlaying()))) { - if(ambient->_mode == 1) { + if (ambient->_mode == 1) { if (_vm->randRange(0, 32767) < ambient->_delay) { ambient->_channel = playSFX(ambient->_id, ambient->_volume, false); } |