diff options
author | Travis Howell | 2007-02-21 10:43:11 +0000 |
---|---|---|
committer | Travis Howell | 2007-02-21 10:43:11 +0000 |
commit | b5b45131c2c4fdacc7da77ffa63eadc3a9f72dc7 (patch) | |
tree | 2f14034a36b2b16f980a9ef285b6544a69fa071f /engines/agos | |
parent | 86f9dbc0a2a5e83b15406d5df769198de01bda33 (diff) | |
download | scummvm-rg350-b5b45131c2c4fdacc7da77ffa63eadc3a9f72dc7.tar.gz scummvm-rg350-b5b45131c2c4fdacc7da77ffa63eadc3a9f72dc7.tar.bz2 scummvm-rg350-b5b45131c2c4fdacc7da77ffa63eadc3a9f72dc7.zip |
White space changes.
svn-id: r25759
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/res_snd.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/engines/agos/res_snd.cpp b/engines/agos/res_snd.cpp index 965a0a37ae..dc6e94034f 100644 --- a/engines/agos/res_snd.cpp +++ b/engines/agos/res_snd.cpp @@ -119,44 +119,44 @@ void AGOSEngine::skipSpeech() { } void AGOSEngine::loadModule(uint music) { - _mixer->stopHandle(_modHandle); + _mixer->stopHandle(_modHandle); - char filename[15]; - File f; + char filename[15]; + File f; - if (getGameType() == GType_ELVIRA1 && getFeatures() & GF_DEMO) - sprintf(filename, "elvira2"); - else if (getPlatform() == Common::kPlatformAcorn) - sprintf(filename, "%dtune.DAT", music); - else - sprintf(filename, "%dtune", music); + if (getGameType() == GType_ELVIRA1 && getFeatures() & GF_DEMO) + sprintf(filename, "elvira2"); + else if (getPlatform() == Common::kPlatformAcorn) + sprintf(filename, "%dtune.DAT", music); + else + sprintf(filename, "%dtune", music); - f.open(filename); - if (f.isOpen() == false) { - error("loadMusic: Can't load module from '%s'", filename); - } + f.open(filename); + if (f.isOpen() == false) { + error("loadMusic: Can't load module from '%s'", filename); + } - Audio::AudioStream *audioStream; - if (!(getGameType() == GType_ELVIRA1 && getFeatures() & GF_DEMO) && - getFeatures() & GF_CRUNCHED) { + Audio::AudioStream *audioStream; + if (!(getGameType() == GType_ELVIRA1 && getFeatures() & GF_DEMO) && + getFeatures() & GF_CRUNCHED) { - uint srcSize = f.size(); - byte *srcBuf = (byte *)malloc(srcSize); - if (f.read(srcBuf, srcSize) != srcSize) - error("loadMusic: Read failed"); + uint srcSize = f.size(); + byte *srcBuf = (byte *)malloc(srcSize); + if (f.read(srcBuf, srcSize) != srcSize) + error("loadMusic: Read failed"); - uint dstSize = READ_BE_UINT32(srcBuf + srcSize - 4); - byte *dstBuf = (byte *)malloc(dstSize); - decrunchFile(srcBuf, dstBuf, srcSize); - free(srcBuf); + uint dstSize = READ_BE_UINT32(srcBuf + srcSize - 4); + byte *dstBuf = (byte *)malloc(dstSize); + decrunchFile(srcBuf, dstBuf, srcSize); + free(srcBuf); - Common::MemoryReadStream stream(dstBuf, dstSize); - audioStream = Audio::makeProtrackerStream(&stream, _mixer->getOutputRate()); - } else { - audioStream = Audio::makeProtrackerStream(&f, _mixer->getOutputRate()); - } + Common::MemoryReadStream stream(dstBuf, dstSize); + audioStream = Audio::makeProtrackerStream(&stream, _mixer->getOutputRate()); + } else { + audioStream = Audio::makeProtrackerStream(&f, _mixer->getOutputRate()); + } - _mixer->playInputStream(Audio::Mixer::kMusicSoundType, &_modHandle, audioStream); + _mixer->playInputStream(Audio::Mixer::kMusicSoundType, &_modHandle, audioStream); } void AGOSEngine::loadMusic(uint music) { @@ -186,7 +186,7 @@ void AGOSEngine::loadMusic(uint music) { return; if (getGameId() == GID_SIMON1ACORN) { - // TODO: Add support for music format used by Simon 1 Floppy + // TODO: Add support for Desktop Tracker format } else if (getPlatform() == Common::kPlatformAmiga) { loadModule(music); } else if (getFeatures() & GF_TALKIE) { |