mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 16:33:50 +00:00
MOHAWK: Fix meaning of the sound loop variable
svn-id: r55433
This commit is contained in:
parent
cbbafc962d
commit
c1e68ac94d
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user