aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mohawk/sound.cpp12
-rw-r--r--engines/mohawk/sound.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/mohawk/sound.cpp b/engines/mohawk/sound.cpp
index ac7aa79892..9781258e87 100644
--- a/engines/mohawk/sound.cpp
+++ b/engines/mohawk/sound.cpp
@@ -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;
diff --git a/engines/mohawk/sound.h b/engines/mohawk/sound.h
index de8dffe1d3..73f7a728ab 100644
--- a/engines/mohawk/sound.h
+++ b/engines/mohawk/sound.h
@@ -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;