mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 15:40:57 +00:00
STARK: Fix the ADPCM decoder
This commit is contained in:
parent
13670d165e
commit
daf806f5fd
@ -40,8 +40,8 @@ int ISS_ADPCMStream::readBuffer(int16 *buffer, const int numSamples) {
|
||||
}
|
||||
|
||||
byte data = _stream->readByte();
|
||||
buffer[samples] = decodeIMA((data >> 4) & 0x0f);
|
||||
buffer[samples + 1] = decodeIMA(data & 0x0f, _channels == 2 ? 1 : 0);
|
||||
buffer[samples] = decodeIMA(data & 0x0f);
|
||||
buffer[samples + 1] = decodeIMA((data >> 4) & 0x0f, _channels == 2 ? 1 : 0);
|
||||
_blockPos[0]++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user