aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/res_snd.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2007-02-13 21:41:43 +0000
committerTorbjörn Andersson2007-02-13 21:41:43 +0000
commitc2972f09c296ef32dec0d4452c3f42742b27b564 (patch)
tree172bd1c4d83425e0f1f13a0fda43f6850ee730d6 /engines/agos/res_snd.cpp
parent846a3498b8766b94cd0c0662e5a592341ce712b1 (diff)
downloadscummvm-rg350-c2972f09c296ef32dec0d4452c3f42742b27b564.tar.gz
scummvm-rg350-c2972f09c296ef32dec0d4452c3f42742b27b564.tar.bz2
scummvm-rg350-c2972f09c296ef32dec0d4452c3f42742b27b564.zip
Whitespace changes.
svn-id: r25567
Diffstat (limited to 'engines/agos/res_snd.cpp')
-rw-r--r--engines/agos/res_snd.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/engines/agos/res_snd.cpp b/engines/agos/res_snd.cpp
index 305bd3e7e3..7fa8115d26 100644
--- a/engines/agos/res_snd.cpp
+++ b/engines/agos/res_snd.cpp
@@ -169,17 +169,17 @@ void AGOSEngine::loadMusic(uint music) {
_gameFile->read(buf, 4);
if (!memcmp(buf, "FORM", 4)) {
_gameFile->seek(_gameOffsetsPtr[_musicIndexBase + music - 1], SEEK_SET);
- midi.loadXMIDI (_gameFile);
+ midi.loadXMIDI(_gameFile);
} else {
_gameFile->seek(_gameOffsetsPtr[_musicIndexBase + music - 1], SEEK_SET);
- midi.loadMultipleSMF (_gameFile);
+ midi.loadMultipleSMF(_gameFile);
}
_lastMusicPlayed = music;
_nextMusicToPlay = -1;
} else if (getGameType() == GType_SIMON1) {
midi.stop();
- midi.setLoop (true); // Must do this BEFORE loading music. (GMF may have its own override.)
+ midi.setLoop(true); // Must do this BEFORE loading music. (GMF may have its own override.)
if (getFeatures() & GF_TALKIE) {
// FIXME: The very last music resource, a cymbal crash for when the
@@ -188,16 +188,16 @@ void AGOSEngine::loadMusic(uint music) {
// a loop override that acomplishes this, but there seems to be nothing
// for this in the SMF resources.
if (music == 35)
- midi.setLoop (false);
+ midi.setLoop(false);
_gameFile->seek(_gameOffsetsPtr[_musicIndexBase + music], SEEK_SET);
_gameFile->read(buf, 4);
if (!memcmp(buf, "GMF\x1", 4)) {
_gameFile->seek(_gameOffsetsPtr[_musicIndexBase + music], SEEK_SET);
- midi.loadSMF (_gameFile, music);
+ midi.loadSMF(_gameFile, music);
} else {
_gameFile->seek(_gameOffsetsPtr[_musicIndexBase + music], SEEK_SET);
- midi.loadMultipleSMF (_gameFile);
+ midi.loadMultipleSMF(_gameFile);
}
} else {
@@ -209,15 +209,15 @@ void AGOSEngine::loadMusic(uint music) {
error("loadMusic: Can't load music from '%s'", filename);
if (getFeatures() & GF_DEMO)
- midi.loadS1D (&f);
+ midi.loadS1D(&f);
else
- midi.loadSMF (&f, music);
+ midi.loadSMF(&f, music);
}
- midi.startTrack (0);
+ midi.startTrack(0);
} else {
midi.stop();
- midi.setLoop (true); // Must do this BEFORE loading music.
+ midi.setLoop(true); // Must do this BEFORE loading music.
char filename[15];
File f;
@@ -226,8 +226,8 @@ void AGOSEngine::loadMusic(uint music) {
if (f.isOpen() == false)
error("loadMusic: Can't load music from '%s'", filename);
- midi.loadS1D (&f);
- midi.startTrack (0);
+ midi.loadS1D(&f);
+ midi.startTrack(0);
}
}