aboutsummaryrefslogtreecommitdiff
path: root/sound/mods
diff options
context:
space:
mode:
authorNorbert Lange2009-07-19 01:14:51 +0000
committerNorbert Lange2009-07-19 01:14:51 +0000
commit31b6767666c3ed5f3ef0660218941d26eccf2446 (patch)
tree2e6903ae597dea70f30039f2df2f6f6f36dcc2d7 /sound/mods
parent396d6c86aa5128449d9e99020b28ace2a0492bdd (diff)
downloadscummvm-rg350-31b6767666c3ed5f3ef0660218941d26eccf2446.tar.gz
scummvm-rg350-31b6767666c3ed5f3ef0660218941d26eccf2446.tar.bz2
scummvm-rg350-31b6767666c3ed5f3ef0660218941d26eccf2446.zip
fixed: intro-music started twice because it was hardcoded in the engine
removed verbose debug-output from maxtrax svn-id: r42604
Diffstat (limited to 'sound/mods')
-rw-r--r--sound/mods/maxtrax.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/sound/mods/maxtrax.cpp b/sound/mods/maxtrax.cpp
index 6c7e19889b..38327eda32 100644
--- a/sound/mods/maxtrax.cpp
+++ b/sound/mods/maxtrax.cpp
@@ -625,7 +625,6 @@ bool MaxTrax::load(Common::SeekableReadStream &musicData, bool loadScores, bool
_playerCtx.tempoInitial = songTempo;
_playerCtx.filterOn = (flags & 1) != 0;
_playerCtx.handleVolume = (flags & 2) != 0;
- debug("Header: MXTX %02X %02X", _playerCtx.tempo, flags);
}
if (flags & (1 << 15)) {
@@ -643,7 +642,6 @@ bool MaxTrax::load(Common::SeekableReadStream &musicData, bool loadScores, bool
if (loadScores) {
const uint16 tempScores = MIN(scoresInFile, _playerCtx.maxScoreNum);
- debug("#Scores: %d, loading # of scores: %d", scoresInFile, tempScores);
Score *curScore =_scores = new Score[tempScores];
for (int i = tempScores; i > 0; --i, ++curScore) {
@@ -661,17 +659,13 @@ bool MaxTrax::load(Common::SeekableReadStream &musicData, bool loadScores, bool
_numScores = scoresLoaded = tempScores;
}
- if (false && !loadSamples)
+ if (!loadSamples)
return true;
// skip over remaining scores in file
for (int i = scoresInFile - scoresLoaded; i > 0; --i)
musicData.skip(musicData.readUint32BE() * 6);
- for (int i = 0; i < _numScores; ++i)
- outPutScore(_scores[i], i);
-
- debug("samples start at filepos %08X", musicData.pos());
// uint16 number of Samples
const uint16 wavesInFile = musicData.readUint16BE();
if (loadSamples) {
@@ -694,7 +688,6 @@ bool MaxTrax::load(Common::SeekableReadStream &musicData, bool loadScores, bool
curPatch.releaseLen = musicData.readUint16BE();
const uint32 totalEnvs = curPatch.attackLen + curPatch.releaseLen;
- debug("wave nr %d at %08X - %d octaves", number, musicData.pos(), curPatch.sampleOctaves);
// Allocate space for both attack and release Segment.
Envelope *envPtr = new Envelope[totalEnvs];
// Attack Segment
@@ -713,7 +706,7 @@ bool MaxTrax::load(Common::SeekableReadStream &musicData, bool loadScores, bool
curPatch.samplePtr = allocSamples;
musicData.read(allocSamples, totalSamples);
}
- } else if (wavesInFile > 0){
+ } /* else if (wavesInFile > 0){ // only necessary if we need to consume the whole stream to point at end of data
uint32 skipLen = 3 * 2;
for (int i = wavesInFile; i > 0; --i) {
musicData.skip(skipLen);
@@ -722,15 +715,13 @@ bool MaxTrax::load(Common::SeekableReadStream &musicData, bool loadScores, bool
const uint32 sustainLen = musicData.readUint32BE();
const uint16 attackCount = musicData.readUint16BE();
const uint16 releaseCount = musicData.readUint16BE();
- debug("wave nr %d at %08X", 0, musicData.pos());
skipLen = attackCount * 4 + releaseCount * 4
+ (attackLen + sustainLen) * ((1 << octaves) - 1)
+ 3 * 2;
}
musicData.skip(skipLen - 3 * 2);
- }
- debug("endpos %08X", musicData.pos());
+ } */
return res;
}