MOHAWK: Fix meaning of the sound loop variable

svn-id: r55433
This commit is contained in:
Matthew Hoops 2011-01-22 16:35:25 +00:00
parent cbbafc962d
commit c1e68ac94d
2 changed files with 7 additions and 7 deletions

View File

@ -440,15 +440,15 @@ Audio::AudioStream *Sound::makeMohawkWaveStream(Common::SeekableReadStream *stre
dataChunk.bitsPerSample = stream->readByte();
dataChunk.channels = stream->readByte();
dataChunk.encoding = stream->readUint16BE();
dataChunk.loop = stream->readUint16BE();
dataChunk.loopCount = stream->readUint16BE();
dataChunk.loopStart = stream->readUint32BE();
dataChunk.loopEnd = stream->readUint32BE();
// NOTE: We currently ignore all of the loop parameters here. Myst uses the loop
// variable but the loopStart and loopEnd are always 0 and the size of the sample.
// Myst ME doesn't use the Mohawk Sound format and just standard WAVE files and
// therefore does not contain any of this metadata and we have to specify whether
// or not to loop elsewhere.
// NOTE: We currently ignore all of the loop parameters here. Myst uses the
// loopCount variable but the loopStart and loopEnd are always 0 and the size of
// the sample. Myst ME doesn't use the Mohawk Sound format and just standard WAVE
// files and therefore does not contain any of this metadata and we have to specify
// whether or not to loop elsewhere.
dataChunk.audioData = stream->readStream(dataSize);
break;

View File

@ -110,7 +110,7 @@ struct DataChunk {
byte bitsPerSample;
byte channels;
uint16 encoding;
uint16 loop;
uint16 loopCount; // 0 == no looping, 0xFFFF == infinite loop
uint32 loopStart;
uint32 loopEnd;
Common::SeekableReadStream *audioData;